Skip to content

Commit

Permalink
Add wait for healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
ahosgood committed Nov 6, 2024
1 parent 4cc86d5 commit f3e019f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 12 additions & 3 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,18 @@ runs:
echo "PORT=$PORT" >> "$GITHUB_ENV"
docker compose up ${{ inputs.service }} -d
shell: bash
# - name: Test healthcheck endpoint
# run: curl http://localhost:82/healthcheck/live/
# shell: bash


- name: Sleep for 30 seconds
uses: jakejarvis/wait-action@master
with:
time: '30s'



- name: Test healthcheck endpoint
run: curl http://localhost:82/healthcheck/live/
shell: bash
- name: Wait for healthcheck
uses: gerdemann/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
major-version: ${{ steps.build.outputs.major-version }}
minor-version: ${{ steps.build.outputs.minor-version }}
base-image: ghcr.io/nationalarchives/tna-python
docker-context: docker/tna-python-root
docker-context: docker/tna-python
github-token: ${{ secrets.GITHUB_TOKEN }}

python-django:
Expand Down

0 comments on commit f3e019f

Please sign in to comment.