CI: build-once pipeline, deploy IFT after CI with conditional aux images.
CI / test (push) Failing after 8m2s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-10 12:55:01 +03:00
parent 8f28de1461
commit 9b48b165ba
4 changed files with 104 additions and 50 deletions
+19
View File
@@ -13,6 +13,7 @@ concurrency:
env:
BUILDKIT_PROGRESS: quiet
DOCKER_BUILDKIT: 1
REGISTRY: git.sabilin.com/eventhub
jobs:
test:
@@ -46,3 +47,21 @@ jobs:
- name: Run API tests (local CT)
run: docker run --rm eventhub-api-tests:latest
- name: Login to registry
if: github.event_name == 'push'
uses: docker/login-action@v2
with:
registry: git.sabilin.com
username: ${{ secrets.REGISTRY_USER }}
password: ${{ secrets.REGISTRY_PASSWORD }}
- name: Push tested eventhub image
if: github.event_name == 'push'
run: |
set -euo pipefail
TAG="sha-${GITHUB_SHA:0:12}"
docker tag eventhub:latest "${REGISTRY}/eventhub:${TAG}"
docker tag eventhub:latest "${REGISTRY}/eventhub:ift"
docker push "${REGISTRY}/eventhub:${TAG}"
docker push "${REGISTRY}/eventhub:ift"