161ef94b4f
Check engine pin consistency / Dockerfile / CI pin consistency (push) Successful in 8s
Sirius CI/CD Pipeline / Detect Changes (push) Successful in 23s
Validate Docker Configuration / Validate Docker Compose Configuration (push) Successful in 47s
Sirius CI/CD Pipeline / Build API (${{ matrix.platform }}) (push) Has been cancelled
Sirius CI/CD Pipeline / Build UI (${{ matrix.platform }}) (push) Has been cancelled
Sirius CI/CD Pipeline / Merge Engine Manifest (push) Has been cancelled
Sirius CI/CD Pipeline / Merge API Manifest (push) Has been cancelled
Sirius CI/CD Pipeline / Merge UI Manifest (push) Has been cancelled
Sirius CI/CD Pipeline / Build Engine (${{ matrix.platform }}) (push) Has been cancelled
Sirius CI/CD Pipeline / Build Infra (${{ matrix.service }}, ${{ matrix.platform }}) (push) Has been cancelled
Sirius CI/CD Pipeline / Merge Infra Manifest (sirius-postgres) (push) Has been cancelled
Sirius CI/CD Pipeline / Merge Infra Manifest (sirius-rabbitmq) (push) Has been cancelled
Sirius CI/CD Pipeline / Merge Infra Manifest (sirius-valkey) (push) Has been cancelled
Sirius CI/CD Pipeline / Integration Test (push) Has been cancelled
Sirius CI/CD Pipeline / Public Stack Contract (push) Has been cancelled
Sirius CI/CD Pipeline / Dispatch Demo Deployment (sirius-demo branch) (push) Has been cancelled
Sirius CI/CD Pipeline / Dispatch Demo Canary (main branch) (push) Has been cancelled
Sirius CI/CD Pipeline / Guard Registry Namespace (push) Has been cancelled
42 lines
1.2 KiB
Bash
42 lines
1.2 KiB
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
IMAGE_TAG="${IMAGE_TAG:-latest}"
|
|
REGISTRY="${REGISTRY:-ghcr.io/siriusscan}"
|
|
|
|
declare -a SERVICES=("sirius-ui" "sirius-api" "sirius-engine")
|
|
|
|
echo "Verifying release images for tag: ${IMAGE_TAG}"
|
|
|
|
for service in "${SERVICES[@]}"; do
|
|
image_ref="${REGISTRY}/${service}:${IMAGE_TAG}"
|
|
container_name="${service}"
|
|
|
|
echo
|
|
echo "Pulling ${image_ref}..."
|
|
docker pull "${image_ref}" >/dev/null
|
|
|
|
expected_id="$(docker image inspect "${image_ref}" --format '{{.Id}}')"
|
|
running_image_ref="$(docker inspect "${container_name}" --format '{{.Config.Image}}' 2>/dev/null || true)"
|
|
running_id="$(docker inspect "${container_name}" --format '{{.Image}}' 2>/dev/null || true)"
|
|
|
|
if [ -z "${running_id}" ]; then
|
|
echo "❌ ${container_name} is not running"
|
|
exit 1
|
|
fi
|
|
|
|
echo "${container_name} config image: ${running_image_ref}"
|
|
echo "${container_name} running image id: ${running_id}"
|
|
echo "${container_name} expected image id: ${expected_id}"
|
|
|
|
if [ "${running_id}" != "${expected_id}" ]; then
|
|
echo "❌ ${container_name} is not running ${image_ref}"
|
|
exit 1
|
|
fi
|
|
|
|
echo "✅ ${container_name} matches ${image_ref}"
|
|
done
|
|
|
|
echo
|
|
echo "All release image checks passed."
|