Conditionally set push argument for Docker
This commit is contained in:
@@ -146,7 +146,9 @@ jobs:
|
||||
if [[ "$GHCR" == "false" ]]; then
|
||||
ARGS+=(--noghcr)
|
||||
fi
|
||||
ARGS+=(--push)
|
||||
if [[ "$DOCKERHUB" == "true" || "$GHCR" == "true" ]]; then
|
||||
ARGS+=(--push)
|
||||
fi
|
||||
else
|
||||
echo "Not pushing anything as it's a dry run"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user