File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -31,13 +31,13 @@ jobs:
3131 # Change all uppercase to lowercase
3232 IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
3333 # Strip git ref prefix from version
34- VERSION=$(echo "${{ github.ref } }" | sed -e 's,.*/\(.*\),\1,')
34+ VERSION=$(echo "${GITHUB_REF }" | sed -e 's,.*/\(.*\),\1,')
3535 # Strip "v" prefix from tag name
36- [[ "${{ github.ref } }" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
36+ [[ "${GITHUB_REF }" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
3737 [ "$VERSION" == "main" ] && VERSION=next
3838 echo IMAGE_ID=$IMAGE_ID
3939 echo VERSION=$VERSION
4040 [ "$VERSION" == "merge" ] && exit 0
41- [[ "${{ github.ref } }" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest && docker push $IMAGE_ID:latest
41+ [[ "${GITHUB_REF }" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest && docker push $IMAGE_ID:latest
4242 docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
4343 docker push $IMAGE_ID:$VERSION
You can’t perform that action at this time.
0 commit comments