File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed
Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,12 @@ name: Docker Build
44
55# Controls when the action will run.
66on :
7+ workflow_dispatch :
8+ inputs :
9+ version :
10+ required : true
11+ type : string
12+ description : " Version"
713 release :
814 types : [published]
915
6672 fi
6773 done <<< "${{ steps.meta.outputs.tags }}"
6874
69- TRAVIS_TAG=$(echo $GITHUB_REF | awk -F '/' '{ print $3}')
75+ echo "Start Tags = $TAGS"
76+ echo "GITHUB_REF = $GITHUB_REF"
77+
78+ echo "version = ${{ github.event.inputs.version }}"
79+
80+ if [[ ! -z "${{ github.event.inputs.version }}" ]]; then
81+ TEMP=${{ github.event.inputs.version }}
82+ TEMP=${TEMP:1}
83+ TEMP2=$(echo $GITHUB_REF | awk -F '/' '{ print $3}')
84+ echo "$GITHUB_REF - $TEMP"
85+ TAGS=$(echo $TAGS | sed "s/$TEMP2/$TEMP/")
86+ TRAVIS_TAG=${{ github.event.inputs.version }}
87+ else
88+ TRAVIS_TAG=$(echo $GITHUB_REF | awk -F '/' '{ print $3}')
89+ fi
90+
91+ echo "TRAVIS_TAG = $TRAVIS_TAG"
92+
7093 if [[ "$TRAVIS_TAG" =~ ^v[0-9\.-]*$ ]]; then
7194 IMAGE=${{ env.DEFAULT_IMAGE }}
7295 PUSH="true"
You can’t perform that action at this time.
0 commit comments