mirror of
https://github.com/elgohr/Publish-Docker-Github-Action.git
synced 2026-03-12 18:07:12 -04:00
🐛 Respect no_push in multi platform builds
Fixes https://github.com/elgohr/Publish-Docker-Github-Action/issues/215
This commit is contained in:
@@ -192,7 +192,11 @@ build() {
|
||||
done
|
||||
if uses "${INPUT_PLATFORMS}"; then
|
||||
local PLATFORMS="--platform ${INPUT_PLATFORMS}"
|
||||
docker buildx build --push --metadata-file metadata.json ${PLATFORMS} ${INPUT_BUILDOPTIONS} ${BUILDPARAMS} ${BUILD_TAGS} ${CONTEXT}
|
||||
local PUSHING="--push"
|
||||
if usesBoolean "${INPUT_NO_PUSH}"; then
|
||||
PUSHING=""
|
||||
fi
|
||||
docker buildx build ${PUSHING} --metadata-file metadata.json ${PLATFORMS} ${INPUT_BUILDOPTIONS} ${BUILDPARAMS} ${BUILD_TAGS} ${CONTEXT}
|
||||
else
|
||||
docker build ${INPUT_BUILDOPTIONS} ${BUILDPARAMS} ${BUILD_TAGS} ${CONTEXT}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user