fix: lowercase repository name
@@ -55,13 +55,13 @@ jobs:
- name: Push image
run: |
- IMAGE_ID=docker.pkg.github.com/${{ github.repository }}/$IMAGE_NAME
+ IMAGE_ID="docker.pkg.github.com/${GITHUB_REPOSITORY,,}/${IMAGE_NAME}"
# Strip git ref prefix from version
- VERSION=$(echo "${{ github.ref }}" | sed -e 's,.*/\(.*\),\1,')
+ VERSION=$(echo "${GITHUB_SHA}" | sed -e 's,.*/\(.*\),\1,')
# Strip "v" prefix from tag name
- [[ "${{ github.ref }}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
+ [[ "${GITHUB_SHA}" == "refs/tags/"* ]] && VERSION=$(echo $VERSION | sed -e 's/^v//')
# Use Docker `latest` tag convention
[ "$VERSION" == "master" ] && VERSION=latest
