forked from mtusi2026/mtusi2026lab7
Fix MinIO image pull in CI
Lab 7 checks / contracts (push) Successful in 6s
Lab 7 checks / application (push) Failing after 1m58s
Lab 7 checks / contracts (push) Successful in 6s
Lab 7 checks / application (push) Failing after 1m58s
This commit is contained in:
@@ -26,8 +26,6 @@ jobs:
|
||||
application:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: lab7-ci-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
steps:
|
||||
- name: Download source at workflow commit
|
||||
env:
|
||||
@@ -42,9 +40,13 @@ jobs:
|
||||
--output "$archive"
|
||||
tar --extract --gzip --file="$archive" --strip-components=1
|
||||
- name: Check Docker runtime
|
||||
env:
|
||||
CI_RUN_ID: ${{ github.run_id }}
|
||||
run: |
|
||||
docker info --format '{{.ServerVersion}}'
|
||||
docker compose version
|
||||
attempt="$(python3 -c 'import secrets; print(secrets.token_hex(4))')"
|
||||
printf 'COMPOSE_PROJECT_NAME=lab7-ci-%s-%s\n' "$CI_RUN_ID" "$attempt" >> "$GITHUB_ENV"
|
||||
- name: Build, bootstrap and wait for both API replicas
|
||||
run: scripts/start.sh
|
||||
- name: Run public HTTPS smoke
|
||||
@@ -52,8 +54,8 @@ jobs:
|
||||
- name: Show service status after failure
|
||||
if: failure()
|
||||
run: |
|
||||
if test -f compose.yaml; then docker compose ps --all; fi
|
||||
if test -n "${COMPOSE_PROJECT_NAME:-}"; then docker compose ps --all; fi
|
||||
- name: Stop CI stack
|
||||
if: always()
|
||||
run: |
|
||||
if test -f compose.yaml; then docker compose down; fi
|
||||
if test -n "${COMPOSE_PROJECT_NAME:-}"; then docker compose down; fi
|
||||
|
||||
Reference in New Issue
Block a user