1
0
Fork 0
mirror of https://github.com/aevea/action-kaniko.git synced 2025-01-30 22:09:37 +01:00

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
No known key found for this signature in database
GPG key ID: 60A6BD7F046C850B

View file

@ -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