Add shared Erlang builder/runtime base images from registry.
CI / test (push) Successful in 7m42s

Publish erlang-builder and erlang-runtime as :latest, use them in prod and API test builds, auto-collect NIF libs, and sync CI to pull/push bases before eventhub build.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-11 12:25:42 +03:00
parent 14c0ac9220
commit e8464b3a8b
9 changed files with 228 additions and 42 deletions
+23 -9
View File
@@ -25,6 +25,29 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
- name: Login to registry
if: github.event_name == 'push'
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
bash scripts/retry-docker-build.sh 5 30 -- \
bash -c 'echo "${REGISTRY_PASSWORD}" | docker login git.sabilin.com -u "${REGISTRY_USER}" --password-stdin'
- name: Ensure Erlang base images (registry :latest)
run: |
set -euo pipefail
FORCE=""
if CHANGED="$(git diff --name-only HEAD~1..HEAD 2>/dev/null || true)" \
&& echo "${CHANGED}" | grep -q '^docker/erlang/'; then
FORCE="--force-build"
fi
bash scripts/build-erlang-base-images.sh ${FORCE}
- name: Push Erlang base images
if: github.event_name == 'push'
run: bash scripts/build-erlang-base-images.sh --push
- name: Build eventhub image
run: |
set -euo pipefail
@@ -56,15 +79,6 @@ jobs:
- name: Run API tests (local CT)
run: docker run --rm eventhub-api-tests:latest
- name: Login to registry
if: github.event_name == 'push'
env:
REGISTRY_USER: ${{ secrets.REGISTRY_USER }}
REGISTRY_PASSWORD: ${{ secrets.REGISTRY_PASSWORD }}
run: |
bash scripts/retry-docker-build.sh 5 30 -- \
bash -c 'echo "${REGISTRY_PASSWORD}" | docker login git.sabilin.com -u "${REGISTRY_USER}" --password-stdin'
- name: Push tested eventhub image
if: github.event_name == 'push'
run: |