From ee247bd7e735d03c997a3e8283c9bd1ef2f7b4cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=A1=D0=B0?= =?UTF-8?q?=D0=B1=D0=B8=D0=BB=D0=B8=D0=BD?= Date: Thu, 16 Jul 2026 12:44:44 +0300 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=D0=B2=D1=81=D0=B5=D0=B3=D0=B4=D0=B0?= =?UTF-8?q?=20=D0=BF=D0=B5=D1=80=D0=B5=D1=81=D0=BE=D0=B1=D0=B8=D1=80=D0=B0?= =?UTF-8?q?=D1=82=D1=8C=20API=20test=20image=20=D0=B2=20E2E=20=D1=81=D1=82?= =?UTF-8?q?=D0=B5=D0=BD=D0=B4=D0=B0.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Кэш eventhub-api-tests:local оставлял старый audit-тест без remote-ветки. Co-authored-by: Cursor --- scripts/run-stand-api-tests.sh | 26 +++++++++++++++----------- 1 file changed, 15 insertions(+), 11 deletions(-) diff --git a/scripts/run-stand-api-tests.sh b/scripts/run-stand-api-tests.sh index 04f8363..a5b47e4 100644 --- a/scripts/run-stand-api-tests.sh +++ b/scripts/run-stand-api-tests.sh @@ -44,18 +44,22 @@ echo " ADMIN_API_HOST=${ADMIN_API_HOST}" echo " WS_HOST=${WS_HOST}" echo " ADMIN_WS_HOST=${ADMIN_WS_HOST}" -if ! docker image inspect eventhub-api-tests:local >/dev/null 2>&1; then - bash scripts/retry-docker-build.sh 5 60 -- \ - docker buildx build \ - --network=host \ - --file docker/ApiTests.Dockerfile \ - --tag eventhub-api-tests:local \ - --load \ - --provenance=false \ - --sbom=false \ - . +IMAGE="eventhub-api-tests:local" +if [[ -n "${GITHUB_SHA:-}" ]]; then + IMAGE="eventhub-api-tests:sha-${GITHUB_SHA:0:12}" fi +echo "=== build API test image (${IMAGE}) ===" +bash scripts/retry-docker-build.sh 5 60 -- \ + docker buildx build \ + --network=host \ + --file docker/ApiTests.Dockerfile \ + --tag "${IMAGE}" \ + --load \ + --provenance=false \ + --sbom=false \ + . + docker run --rm --network=host \ -e CT_MODE=remote \ -e "API_HOST=${API_HOST}" \ @@ -70,6 +74,6 @@ docker run --rm --network=host \ -e "ADMIN_MODER_PASSWORD=${ADMIN_MODER_PASSWORD:-}" \ -e "ADMIN_SUPPORT_EMAIL=${ADMIN_SUPPORT_EMAIL:-}" \ -e "ADMIN_SUPPORT_PASSWORD=${ADMIN_SUPPORT_PASSWORD:-}" \ - eventhub-api-tests:local + "${IMAGE}" echo "=== API CT passed (${STAND}) ==="