ci: refresh invalid quality golden image
Some checks failed
CI/CD Pipeline / Quality Gate (push) Failing after 2m43s
CI/CD Pipeline / Build and Push Images (push) Has been skipped
CI/CD Pipeline / Deploy Dev in Dokploy (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 1s

This commit is contained in:
2026-04-28 21:21:43 +02:00
parent ca0c3d3754
commit 26f0669670

View File

@@ -93,7 +93,12 @@ jobs:
fi
docker buildx inspect --bootstrap
if ! docker buildx imagetools inspect "${CI_GOLDEN_REF}:${GOLDEN_TAG}" >/dev/null 2>&1; then
image_usable() {
docker run --rm "${CI_GOLDEN_REF}:${GOLDEN_TAG}" \
bash -lc 'command -v ruff >/dev/null && python -m pytest --version >/dev/null'
}
if ! docker buildx imagetools inspect "${CI_GOLDEN_REF}:${GOLDEN_TAG}" >/dev/null 2>&1 || ! image_usable; then
docker buildx prune --all --force || true
docker builder prune --all --force || true
docker buildx build \
@@ -103,6 +108,7 @@ jobs:
-t "${CI_GOLDEN_REF}:${GOLDEN_TAG}" \
-t "${CI_GOLDEN_REF}:latest" \
.
docker pull "${CI_GOLDEN_REF}:${GOLDEN_TAG}"
fi
docker run --rm \