From 619f79a7c34b26eeb23954a971591200255d60ef Mon Sep 17 00:00:00 2001 From: x70b1 Date: Thu, 3 Nov 2022 23:09:52 +0100 Subject: [PATCH] feat: remove ghcr.io namespace --- entrypoint.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d12889d..6c71adc 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,16 +35,14 @@ ensure "${TAG}" "tag" ensure "${CONTEXT_PATH}" "path" if [ "$REGISTRY" == "ghcr.io" ]; then - IMAGE_NAMESPACE="$(echo $GITHUB_REPOSITORY | tr '[:upper:]' '[:lower:]')" - export IMAGE="$IMAGE_NAMESPACE/$IMAGE" - export REPOSITORY="$IMAGE_NAMESPACE/$REPOSITORY" + export IMAGE="$GITHUB_REPOSITORY_OWNER/$IMAGE" if [ ! -z $IMAGE_LATEST ]; then - export IMAGE_LATEST="$IMAGE_NAMESPACE/$IMAGE_LATEST" + export IMAGE_LATEST="$GITHUB_REPOSITORY_OWNER/$IMAGE_LATEST" fi 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