Skip to content

Commit

Permalink
fix: Ensure lowercase GitHub image namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
RSO authored and aexvir committed Apr 8, 2020
1 parent e13fbcb commit 3e63daf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,11 @@ sanitize "${IMAGE}" "image"
sanitize "${TAG}" "tag"

if [ "$REGISTRY" == "docker.pkg.github.com" ]; then
export IMAGE="$GITHUB_REPOSITORY/$IMAGE"
IMAGE_NAMESPACE="$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')"
export IMAGE="$IMAGE_NAMESPACE/$IMAGE"

if [ ! -z $INPUT_CACHE_REGISTRY ]; then
export INPUT_CACHE_REGISTRY="$REGISTRY/$GITHUB_REPOSITORY/$INPUT_CACHE_REGISTRY"
export INPUT_CACHE_REGISTRY="$REGISTRY/$IMAGE_NAMESPACE/$INPUT_CACHE_REGISTRY"
fi
fi

Expand Down

0 comments on commit 3e63daf

Please sign in to comment.