Skip to content

Commit

Permalink
ci: try retry and timeout on healthcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
teleivo committed Jun 15, 2024
1 parent d788430 commit 84a6baa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ concurrency:

jobs:
call-workflow:
uses: dhis2-sre/gha-workflows/.github/workflows/im-build-test-deploy.yaml@master
uses: dhis2-sre/gha-workflows/.github/workflows/im-build-test-deploy.yaml@retry-health
with:
PROCESS_NAME: im-manager
POD_NAME: im-manager
Expand Down
2 changes: 0 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ check:
pre-commit run --all-files --show-diff-on-failure

smoke-test:
docker compose up -d database rabbitmq redis
sleep 60
IMAGE_TAG=$(tag) docker compose up -d prod

docker-image:
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,13 @@ services:
- .env
ports:
- "8080:8080"
depends_on:
database:
condition: service_healthy
rabbitmq:
condition: service_healthy
redis:
condition: service_healthy
profiles:
- prod

Expand Down

0 comments on commit 84a6baa

Please sign in to comment.