2023-04-04 08:32:44 -04:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
2023-04-04 10:06:39 -04:00
|
|
|
. "$DIR/ci/frontend-build"
|
2023-04-04 08:32:44 -04:00
|
|
|
|
2023-04-04 10:33:16 -04:00
|
|
|
cd "${DIR}/../.."
|
2023-04-04 10:29:38 -04:00
|
|
|
|
2023-04-04 08:32:44 -04:00
|
|
|
# Buildx Builder
|
|
|
|
docker buildx create --name "Buildx-NPM" || echo
|
|
|
|
docker buildx use "Buildx-NPM"
|
|
|
|
|
2023-04-05 00:39:58 -04:00
|
|
|
if [ "${BUILD_TAG:-0}" != 0 ]; then
|
2023-04-04 23:36:27 -04:00
|
|
|
docker buildx build -f docker/Dockerfile-zh $BUILD_TAG --platform $BUILD_PLATFORM . --push
|
|
|
|
else
|
|
|
|
docker buildx build -f docker/Dockerfile-zh -t "chishin/nginx-proxy-manager-zh:dev" --platform linux/amd64,linux/arm64,linux/arm/7 . --push
|
|
|
|
fi
|
2023-04-04 08:32:44 -04:00
|
|
|
|
|
|
|
docker buildx rm "Buildx-NPM"
|
|
|
|
|
|
|
|
echo "Multiarch build Complete"
|