forked from wazuh/wazuh-docker
Enhance script execution of build and improve docs clarity
This commit is contained in:
@@ -37,11 +37,16 @@ build() {
|
||||
set +a
|
||||
|
||||
if [ "${MULTIARCH}" ]; then
|
||||
docker buildx bake --file build-image.yml \
|
||||
docker buildx bake \
|
||||
--file build-image.yml \
|
||||
--set *.platform=linux/amd64,linux/arm64 \
|
||||
--push \
|
||||
--no-cache || clean 1
|
||||
else
|
||||
docker buildx bake --file build-image.yml --no-cache || clean 1
|
||||
docker buildx bake \
|
||||
--file build-image.yml \
|
||||
--load \
|
||||
--no-cache || clean 1
|
||||
fi
|
||||
return 0
|
||||
}
|
||||
@@ -99,4 +104,4 @@ main() {
|
||||
clean 0
|
||||
}
|
||||
|
||||
main "$@"
|
||||
main "$@"
|
||||
|
||||
Reference in New Issue
Block a user