Skip to content

Commit

Permalink
🚧 fix: Use container id in health action.
Browse files Browse the repository at this point in the history
  • Loading branch information
make-github-pseudonymous-again committed Apr 20, 2024
1 parent 4762977 commit 5922315
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 5 deletions.
16 changes: 13 additions & 3 deletions .github/workflows/ci:build:compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,15 @@ jobs:
run: |
docker compose up --no-build --detach
- name: Wait for web container to be healthy
- id: patient-db-container
uses: ./.github/actions/compose-container
with:
service: patient-db

- name: Wait for db container to be healthy
uses: ./.github/actions/is-healthy
with:
container: patient-db
container: ${{ steps.patient-db-container.outputs.id }}
timeout: 60

- name: Wait for web port to be available
Expand All @@ -103,10 +108,15 @@ jobs:
timeout: 60
port: 3000

- id: patient-web-container
uses: ./.github/actions/compose-container
with:
service: patient-web

- name: Wait for web container to be healthy
uses: ./.github/actions/is-healthy
with:
container: patient-web
container: ${{ steps.patient-web-container.outputs.id }}
timeout: 60

- name: Call healthcheck endpoint
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/ci:test:deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,15 @@ jobs:
--env-file .deploy/ghcr.io/.env -f .deploy/ghcr.io/compose.yaml \
up --no-build --detach
- id: patient-db-container
uses: ./.github/actions/compose-container
with:
service: patient-db

- name: Wait for database container to be healthy
uses: ./.github/actions/is-healthy
with:
container: patient-db
container: ${{ steps.patient-db-container.outputs.id }}
timeout: 60

- name: Wait for web port to be available
Expand All @@ -63,10 +68,15 @@ jobs:
timeout: 60
port: 3000

- id: patient-web-container
uses: ./.github/actions/compose-container
with:
service: patient-web

- name: Wait for web container to be healthy
uses: ./.github/actions/is-healthy
with:
container: patient-web
container: ${{ steps.patient-web-container.outputs.id }}
timeout: 60

- name: Call healthcheck endpoint
Expand Down

0 comments on commit 5922315

Please sign in to comment.