Ctrl K
ComunidadGuías…

scripts/check-runtime-image-platforms.sh

Rama main · réplica de lectura del repositorio original.

Archivo original ↗Preguntar a KiBot
#!/bin/sh
set -eu

project_dir="$(CDPATH='' cd -- "$(dirname -- "$0")/.." && pwd)"
temporary="$(mktemp -t vastora-runtime-images.XXXXXX)"
trap 'rm -f "$temporary"' EXIT HUP INT TERM

# Consumer integration fixture only; authoritative recipes publish independently.
jq -r '.. | objects | .reference? // empty' "$project_dir/internal/center/testdata/reviewed-catalog-v4.json" >"$temporary"
grep -RhoE --include='*.go' --exclude='*_test.go' \
  '(docker.io|ghcr.io)/[^"[:space:]]+@sha256:[0-9a-f]{64}' \
  "$project_dir/cmd" "$project_dir/internal" >>"$temporary"
grep -RhoE --include='*.yaml' --include='*.yml' --include='*.sh' \
  "(docker.io|ghcr.io)/[^\"'[:space:]]+@sha256:[0-9a-f]{64}" \
  "$project_dir/deploy" >>"$temporary" || true

sort -u "$temporary" | xargs -n 1 -P 4 "$project_dir/scripts/assert-image-platforms.sh"