mirror of
https://github.com/aevea/action-kaniko.git
synced 2025-01-31 06:09:39 +01:00
feat: remove ghcr.io namespace
This commit is contained in:
parent
57fd639926
commit
619f79a7c3
1 changed files with 3 additions and 5 deletions
|
@ -35,16 +35,14 @@ ensure "${TAG}" "tag"
|
||||||
ensure "${CONTEXT_PATH}" "path"
|
ensure "${CONTEXT_PATH}" "path"
|
||||||
|
|
||||||
if [ "$REGISTRY" == "ghcr.io" ]; then
|
if [ "$REGISTRY" == "ghcr.io" ]; then
|
||||||
IMAGE_NAMESPACE="$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')"
|
export IMAGE="$GITHUB_REPOSITORY_OWNER/$IMAGE"
|
||||||
export IMAGE="$IMAGE_NAMESPACE/$IMAGE"
|
|
||||||
export REPOSITORY="$IMAGE_NAMESPACE/$REPOSITORY"
|
|
||||||
|
|
||||||
if [ ! -z $IMAGE_LATEST ]; then
|
if [ ! -z $IMAGE_LATEST ]; then
|
||||||
export IMAGE_LATEST="$IMAGE_NAMESPACE/$IMAGE_LATEST"
|
export IMAGE_LATEST="$GITHUB_REPOSITORY_OWNER/$IMAGE_LATEST"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z $INPUT_CACHE_REGISTRY ]; then
|
if [ ! -z $INPUT_CACHE_REGISTRY ]; then
|
||||||
export INPUT_CACHE_REGISTRY="$REGISTRY/$IMAGE_NAMESPACE/$INPUT_CACHE_REGISTRY"
|
export INPUT_CACHE_REGISTRY="$REGISTRY/$GITHUB_REPOSITORY_OWNER/$INPUT_CACHE_REGISTRY"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue