Skip to content

Commit

Permalink
nth try
Browse files Browse the repository at this point in the history
  • Loading branch information
aegan123 committed Nov 12, 2024
1 parent 8dca7e5 commit 658bcaa
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/build-artifacts-on-tag-and-on-develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ jobs:
env:
DB_HOST: postgres
DB_PORT: 5432
DB_PASSWORD: postgres
DB_NAME: postgres
KEYCLOAK_URL: localhost
SPRING_PROFILES_ACTIVE: dev
Expand All @@ -61,15 +60,20 @@ jobs:
postgres:
image: postgres:17.0
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_USER: postgres
POSTGRES_PASSWORD: 1234
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
options: --health-cmd "pg_isready -U postgres" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v3

- name: Wait for Postgres to be ready
run: |
while ! pg_isready -h localhost -U postgres; do
sleep 1
done
- name: Authenticate to github packages
run: echo '//npm.pkg.github.com/:_authToken=${{ secrets.gh_token }}' > ~/.npmrc

Expand Down

0 comments on commit 658bcaa

Please sign in to comment.