File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 2525
2626 - name : Extract version from tag
2727 id : version
28- run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
28+ run : |
29+ VERSION=${GITHUB_REF#refs/tags/}
30+ if [ -z "$VERSION" ] || [ "$VERSION" = "$GITHUB_REF" ]; then
31+ VERSION="latest"
32+ fi
33+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
2934
3035 - name : Build and push full AMD64 image
3136 uses : docker/build-push-action@v5
Original file line number Diff line number Diff line change 2828
2929 - name : Extract version from tag
3030 id : version
31- run : echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
31+ run : |
32+ VERSION=${GITHUB_REF#refs/tags/}
33+ if [ -z "$VERSION" ] || [ "$VERSION" = "$GITHUB_REF" ]; then
34+ VERSION="latest"
35+ fi
36+ echo "VERSION=$VERSION" >> $GITHUB_OUTPUT
3237
3338 - name : Build and push full ARM64 image
3439 uses : docker/build-push-action@v5
You can’t perform that action at this time.
0 commit comments