CI: deploy-ift after CI success, wait for Docker daemon.
CI / test (push) Failing after 51s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-07-10 22:19:29 +03:00
parent 45575fdea0
commit bcbd7ec89c
2 changed files with 33 additions and 5 deletions
+31 -4
View File
@@ -1,13 +1,14 @@
name: Deploy IFT (admin)
on:
push:
workflow_run:
workflows: [CI]
types: [completed]
branches: [master, main]
workflow_dispatch:
# Один runner (WSL): параллельные workflow ломают buildx/act.
concurrency:
group: eventhub-frontadmin-${{ github.ref }}
group: eventhub-frontadmin-deploy-ift
cancel-in-progress: false
env:
@@ -17,14 +18,26 @@ env:
jobs:
deploy-ift-admin:
if: |
github.event_name == 'workflow_dispatch' ||
(github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')
runs-on: ubuntu-latest
timeout-minutes: 90
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.head_sha || github.sha }}
- name: Compute image tag
id: meta
run: echo "tag=sha-${GITHUB_SHA:0:12}" >> "$GITHUB_OUTPUT"
run: |
set -euo pipefail
if [ "${{ github.event_name }}" = "workflow_run" ]; then
SHA="${{ github.event.workflow_run.head_sha }}"
else
SHA="${GITHUB_SHA}"
fi
echo "tag=sha-${SHA:0:12}" >> "$GITHUB_OUTPUT"
- uses: actions/setup-node@v4
with:
@@ -34,6 +47,20 @@ jobs:
- run: npm ci
- run: npm run build
- name: Wait for Docker daemon
run: |
set -euo pipefail
for i in $(seq 1 36); do
if docker info >/dev/null 2>&1; then
echo "Docker ready"
exit 0
fi
echo "waiting for docker (${i}/36)..."
sleep 5
done
echo "Docker daemon not available"
exit 1
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3