fix(ci): reuse ApiTests image in e2e instead of blind rebuild.

e2e pulled/reused eventhub-tests from test job or registry; plain buildkit logs if rebuild needed. Root cause of #342 e2e cancel: quiet rebuild + prune + timeout.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-17 22:57:50 +03:00
parent 5806bb0f95
commit 046e936eab
2 changed files with 47 additions and 10 deletions
+8
View File
@@ -141,6 +141,10 @@ jobs:
bash scripts/retry-docker-build.sh 5 30 -- docker push "${REGISTRY}/eventhub:${VER_TAG}"
bash scripts/retry-docker-build.sh 5 30 -- docker push "${REGISTRY}/eventhub:ift"
bash scripts/retry-docker-build.sh 5 30 -- docker push "${REGISTRY}/eventhub:dev"
# Тот же ApiTests-образ для e2e-ift/stage — без повторной сборки
docker tag eventhub-tests:latest "${REGISTRY}/eventhub-api-tests:${TAG}"
bash scripts/retry-docker-build.sh 5 30 -- docker push "${REGISTRY}/eventhub-api-tests:${TAG}"
echo "Pushed ${REGISTRY}/eventhub-api-tests:${TAG}"
- name: Prune old registry images
if: github.event_name == 'push'
@@ -283,6 +287,8 @@ jobs:
ADMIN_API_HOST: ${{ secrets.E2E_IFT_ADMIN_API_HOST }}
WS_HOST: ${{ secrets.E2E_IFT_WS_HOST }}
ADMIN_WS_HOST: ${{ secrets.E2E_IFT_ADMIN_WS_HOST }}
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: bash scripts/run-stand-api-tests.sh ift
deploy-stage:
@@ -401,4 +407,6 @@ jobs:
ADMIN_API_HOST: ${{ secrets.E2E_STAGE_ADMIN_API_HOST }}
WS_HOST: ${{ secrets.E2E_STAGE_WS_HOST }}
ADMIN_WS_HOST: ${{ secrets.E2E_STAGE_ADMIN_WS_HOST }}
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: bash scripts/run-stand-api-tests.sh stage