Files
EvoFirewall/scripts/ci/prepare-builder.sh
T
Denozordec 9fa6269174
quality / changes (push) Successful in 7s
quality / commitlint (push) Skipped
quality / openapi (push) Successful in 30s
quality / web (push) Successful in 1m3s
quality / api (push) Successful in 1m15s
quality / linux-agent-smoke (push) Failing after 27s
quality / docker-check (push) Failing after 2m28s
CD / quality (push) Failing after 5m52s
CD / publish (push) Skipped
feat: harden firewall policies telemetry and operations
Implement reliable agent apply, telemetry v2, analytics retention, guarded rollouts, enrollment, labels and webhooks. Improve ReUI frontend data safety and bounded list loading, and add Docker smoke, recovery and resource checks. Document local verification and pending native acceptance.
2026-10-26 13:10:58 +07:00

16 lines
807 B
Bash

#!/usr/bin/env sh
# Each workflow uses a fresh run-scoped builder, created by setup-buildx-action.
# Never remove another job's builder from a shared Docker daemon.
set -eu
name="${1:-evofw}"
config="${2:-deploy/docker/buildkitd.toml}"
docker buildx inspect "$name" --bootstrap >/dev/null
container="$(docker ps -q --filter "name=buildx_buildkit_${name}0")"
[ -n "$container" ] || { echo 'BuildKit container missing' >&2; exit 1; }
effective="$(mktemp)"
trap 'rm -f "$effective"' EXIT HUP INT TERM
docker exec "$container" cat /etc/buildkit/buildkitd.toml >"$effective"
for expected in 'reservedSpace = "2GB"' 'maxUsedSpace = "12GB"' 'minFreeSpace = "5GB"' 'keepDuration = "48h"'; do
grep -F "$expected" "$effective" >/dev/null || { echo 'BuildKit effective GC configuration mismatch' >&2; exit 1; }
done