Conditionally set push argument for Docker

This commit is contained in:
Swarup Sengupta
2025-11-29 02:36:33 +05:30
committed by GitHub
parent 3b151d864f
commit d874258401
+3 -1
View File
@@ -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