File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed
Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,6 @@ name: Build and Push Docker Image
33on :
44 workflow_dispatch :
55 inputs :
6- branch :
7- description : ' Branch to build from'
8- required : true
9- type : string
106 tag_as_latest :
117 description : ' Tag image as latest'
128 required : false
@@ -18,18 +14,16 @@ jobs:
1814 runs-on : ubuntu-latest
1915
2016 steps :
21- - name : Checkout branch
17+ - name : Checkout
2218 uses : actions/checkout@v4
23- with :
24- ref : ${{ inputs.branch }}
2519
2620 - name : Get latest version tag
2721 id : get-tag
2822 run : |
2923 git fetch --tags
3024 LATEST_TAG=$(git tag | grep '^v[0-9]\+\.[0-9]\+\.[0-9]\+\(-rc\.[0-9]\+\)\?$' | sort -V | tail -1)
3125 if [ -z "$LATEST_TAG" ]; then
32- echo "No version tags found on branch ${{ inputs.branch }} "
26+ echo "No version tags found"
3327 exit 1
3428 fi
3529 echo "tag=$LATEST_TAG" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments