Skip to content

Commit

Permalink
fix health check ping
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Bisom committed Apr 16, 2024
1 parent 4779e96 commit 59c2b77
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 8 deletions.
6 changes: 0 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,6 @@ jobs:
sudo curl -L "https://github.com/docker/compose/releases/download/1.29.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
- name: Check secret is set
env:
SECRET: ${{ secrets.DATABASE_DB }}
run: |
echo "Length of secret: ${#DATABASE_DB}"
- name: Build
run: |
docker image prune -a -f
Expand Down
2 changes: 1 addition & 1 deletion docker-compose-dev-ga.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ services:
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ] # We'll wait until the DB is ready to accept connections to start up dependent services
test: [ "CMD", "mysqladmin", "ping", "-h", "db" ] # We'll wait until the DB is ready to accept connections to start up dependent services
timeout: 20s
retries: 10
2 changes: 1 addition & 1 deletion docker-compose-dev.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,6 @@ services:
ports:
- "3306:3306"
healthcheck:
test: [ "CMD", "mysqladmin", "ping", "-h", "localhost" ] # We'll wait until the DB is ready to accept connections to start up dependent services
test: [ "CMD", "mysqladmin", "ping", "-h", "db" ] # We'll wait until the DB is ready to accept connections to start up dependent services
timeout: 20s
retries: 10

0 comments on commit 59c2b77

Please sign in to comment.