File tree Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Expand file tree Collapse file tree 1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change 44 push :
55 branches :
66 - 3.x
7- release :
8- types : [published]
97
108jobs :
119 push_to_registry :
1210 name : Build and push Docker image to Docker Hub
1311 runs-on : ubuntu-22.04
12+ if : startsWith(github.event.ref_name, 'release-')
1413
1514 steps :
1615 - name : Check out the repo with the latest code
2726
2827 - name : Get the current tag
2928 id : currentTag
30- run : git fetch --prune --unshallow && TAG=$(git describe --tags --abbrev=0) && echo $TAG && echo "TAG="$TAG >> "$GITHUB_ENV"
29+ run : |
30+ git fetch --prune --unshallow
31+ TAG=$(git describe --tags --abbrev=0)
32+ echo $TAG
33+ echo "TAG=$TAG" >> $GITHUB_ENV
3134
3235 - name : Build and push Docker image
3336 uses : docker/build-push-action@v6
3639 push : true
3740 tags : |
3841 ${{ secrets.DOCKERHUB_REPOSITORY }}:latest
39- ${{ secrets.DOCKERHUB_REPOSITORY }}:${{ env.TAG }}
42+ ${{ secrets.DOCKERHUB_REPOSITORY }}:${{ env.TAG }}
You can’t perform that action at this time.
0 commit comments