Some checks failed
Release S-UI / build-frontend (push) Failing after 1m53s
Release S-UI / build-386 (push) Has been skipped
Release S-UI / build-amd64 (push) Has been skipped
Release S-UI / build-armv5 (push) Has been skipped
Release S-UI / build-armv6 (push) Has been skipped
Release S-UI / build-armv7 (push) Has been skipped
Release S-UI / build-s390x (push) Has been skipped
Release S-UI / build-arm64 (push) Has been skipped
Build S-UI for Windows / build-frontend (push) Failing after 2s
Build S-UI for Windows / build-windows-amd64 (push) Has been skipped
Build S-UI for Windows / build-windows-arm64 (push) Has been skipped
Signed-off-by: Pavel Kirilin <s3riussan@gmail.com>
30 lines
977 B
Bash
Executable File
30 lines
977 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# Test Docker multi-platform build (linux/amd64, 386, arm64, arm/v7, arm/v6)
|
|
# Requires: frontend_dist/ (run from repo root after building frontend)
|
|
|
|
set -e
|
|
cd "$(dirname "$0")/.."
|
|
|
|
echo "==> Preparing frontend_dist..."
|
|
if [ ! -d "frontend_dist" ] || [ -z "$(ls -A frontend_dist 2>/dev/null)" ]; then
|
|
echo "Building frontend..."
|
|
(cd frontend && npm install --prefer-offline --no-audit && npm run build)
|
|
rm -rf frontend_dist
|
|
mkdir -p frontend_dist
|
|
cp -R frontend/dist/* frontend_dist/
|
|
echo "frontend_dist ready."
|
|
else
|
|
echo "frontend_dist exists, skipping frontend build."
|
|
fi
|
|
|
|
PLATFORMS="linux/amd64,linux/386,linux/arm64/v8,linux/arm/v7,linux/arm/v6"
|
|
echo "==> Testing Docker build for: $PLATFORMS"
|
|
docker buildx build \
|
|
--platform "$PLATFORMS" \
|
|
-f Dockerfile.frontend-artifact \
|
|
--build-arg CRONET_RELEASE=latest \
|
|
--progress=plain \
|
|
. 2>&1 | tee docker-build-test.log
|
|
|
|
echo "==> Done. Check docker-build-test.log for full output."
|