ops(ci): fix docker-build job — setup .env BEFORE compose build
Some checks are pending
CI / Lint bridge (Biome) (push) Waiting to run
CI / Type-check bridge (push) Blocked by required conditions
CI / Tests unit bridge (push) Blocked by required conditions
CI / Tests integration bridge (push) Blocked by required conditions
CI / Security scan (push) Waiting to run
CI / Docker build + healthcheck (push) Blocked by required conditions
Some checks are pending
CI / Lint bridge (Biome) (push) Waiting to run
CI / Type-check bridge (push) Blocked by required conditions
CI / Tests unit bridge (push) Blocked by required conditions
CI / Tests integration bridge (push) Blocked by required conditions
CI / Security scan (push) Waiting to run
CI / Docker build + healthcheck (push) Blocked by required conditions
- cp .env.example .env en step 1 (compose interpole les vars au build) - Add `compose config` validation step - Bump sleep 30 -> 60s (Docmost boot prend 45-60s sur runner) - Bump logs --tail=200 (200 lignes au lieu de tout)
This commit is contained in:
parent
66ff9097a6
commit
d8e8bdefe5
1 changed files with 8 additions and 6 deletions
14
.github/workflows/ci.yml
vendored
14
.github/workflows/ci.yml
vendored
|
|
@ -128,19 +128,21 @@ jobs:
|
|||
needs: [test-bridge-unit, test-bridge-integration, security-scan]
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Setup .env (avant compose pour interpolation)
|
||||
run: cp .env.example .env
|
||||
- name: Validate compose config
|
||||
run: docker compose config > /dev/null
|
||||
- name: Build images
|
||||
run: docker compose build
|
||||
- name: Up stack
|
||||
run: |
|
||||
cp .env.example .env
|
||||
docker compose up -d
|
||||
- name: Wait for services
|
||||
run: sleep 30
|
||||
run: docker compose up -d
|
||||
- name: Wait for services (60s — Docmost boot lent)
|
||||
run: sleep 60
|
||||
- name: Healthcheck
|
||||
run: ./scripts/healthcheck.sh
|
||||
- name: Logs on failure
|
||||
if: failure()
|
||||
run: docker compose logs
|
||||
run: docker compose logs --tail=200
|
||||
- name: Cleanup
|
||||
if: always()
|
||||
run: docker compose down -v
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue