From 47b714c8dd01df6da76ae508f627eec1aba9b080 Mon Sep 17 00:00:00 2001 From: Alex Viscreanu Date: Sun, 16 Feb 2020 22:52:06 +0100 Subject: [PATCH] fix: Reverse conditional for github cache registry --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 4eba477..ddaf57c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,7 +26,7 @@ sanitize "${TAG}" "tag" if [ "$REGISTRY" == "docker.pkg.github.com" ]; then export IMAGE="$GITHUB_REPOSITORY/$IMAGE" - if [ -z $INPUT_CACHE_REGISTRY ]; then + if [ ! -z $INPUT_CACHE_REGISTRY ]; then export INPUT_CACHE_REGISTRY="$GITHUB_REPOSITORY/$INPUT_CACHE_REGISTRY" fi fi