fix: Reverse conditional for github cache registry

This commit is contained in:
Alex Viscreanu
2020-02-16 22:52:06 +01:00
parent b351432674
commit 47b714c8dd

View File

@@ -26,7 +26,7 @@ sanitize "${TAG}" "tag"
if [ "$REGISTRY" == "docker.pkg.github.com" ]; then if [ "$REGISTRY" == "docker.pkg.github.com" ]; then
export IMAGE="$GITHUB_REPOSITORY/$IMAGE" 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" export INPUT_CACHE_REGISTRY="$GITHUB_REPOSITORY/$INPUT_CACHE_REGISTRY"
fi fi
fi fi