fix: Ensure lowercase GitHub image namespace

This commit is contained in:
Remon Oldenbeuving authored and Alex Viscreanu committed 2020-04-08 09:14:03 +02:00
1 parent e13fbcb36b
commit 3e63daf6fe
1 file changed
+3 -2
+3 -2
View File
@@ -25,10 +25,11 @@ sanitize "${IMAGE}" "image"
sanitize "${TAG}" "tag" sanitize "${TAG}" "tag"
if [ "$REGISTRY" == "docker.pkg.github.com" ]; then 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 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
fi fi