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 @@ -33,13 +33,13 @@ jobs:
3333 # Change all uppercase to lowercase
3434 IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]')
3535 # Strip git ref prefix from version
36- VERSION=$(echo "${{ github.ref } }" | sed -e 's,.*/\(.*\),\1,')
36+ VERSION=$(echo "${GITHUB_REF }" | sed -e 's,.*/\(.*\),\1,')
3737 # Strip "v" prefix from tag name
38- [[ "${{ github.ref } }" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
38+ [[ "${GITHUB_REF }" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
3939 [ "$VERSION" == "main" ] && VERSION=next
4040 echo IMAGE_ID=$IMAGE_ID
4141 echo VERSION=$VERSION
4242 [ "$VERSION" == "merge" ] && exit 0
43- [[ "${{ github.ref } }" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest && docker push $IMAGE_ID:latest
43+ [[ "${GITHUB_REF }" == "refs/tags/"* ]] && docker tag $IMAGE_NAME $IMAGE_ID:latest && docker push $IMAGE_ID:latest
4444 docker tag $IMAGE_NAME $IMAGE_ID:$VERSION
4545 docker push $IMAGE_ID:$VERSION
You can’t perform that action at this time.
0 commit comments