mirror of
https://github.com/aevea/action-kaniko.git
synced 2025-01-30 22:09:37 +01:00
fix: Ensure lowercase GitHub image namespace
This commit is contained in:
parent
e13fbcb36b
commit
3e63daf6fe
1 changed files with 3 additions and 2 deletions
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue