ci: report per-route JavaScript budgets from Docker build
This commit is contained in:
1 parent
445ef13846
commit
cc714b427a
9 files changed
+744
-1
No files matched your search
@@ -99,6 +99,22 @@ echo "Building $image"
|
||||
DOCKER_BUILDKIT=1 docker build --network=host --progress=plain --cache-from epicnext-cms:latest \
|
||||
--build-arg NEXT_DEPLOYMENT_ID="$sha" -t "$image" .
|
||||
check_current
|
||||
# Read reports from the already-built image; do not start an extra application.
|
||||
report_container=""
|
||||
if report_container="$(docker create --entrypoint /bin/true "$image")"; then
|
||||
mkdir -p build-reports
|
||||
if docker cp "$report_container:/app/build-reports/." build-reports; then
|
||||
cat build-reports/report.md
|
||||
if [ -n "${GITHUB_STEP_SUMMARY:-}" ]; then
|
||||
cat build-reports/report.md >> "$GITHUB_STEP_SUMMARY"
|
||||
fi
|
||||
else
|
||||
echo "Warning: build performance report unavailable" >&2
|
||||
fi
|
||||
docker rm "$report_container" >/dev/null
|
||||
else
|
||||
echo "Warning: could not extract build performance report" >&2
|
||||
fi
|
||||
pnpm db:migrate
|
||||
check_current
|
||||
|
||||
|
||||
Reference in new issue
Block a user