1
0
Fork 0
mirror of https://github.com/aevea/action-kaniko.git synced 2025-01-31 06:09:39 +01:00

fix: Ensure lowercase GitHub image namespace

This commit is contained in:
Remon Oldenbeuving 2020-04-07 11:39:12 +02:00 committed by Alex Viscreanu
parent e13fbcb36b
commit 3e63daf6fe

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