Skip to content

Commit

Permalink
Wait for postgres in separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
ronenh committed Nov 22, 2024
1 parent b19377e commit cfd56a5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,14 @@ jobs:
--k3s-arg "--disable=metrics-server@server:*"
-
name: Deploy Postgres
run: |
helm install postgresql oci://registry-1.docker.io/bitnamicharts/postgresql \
--namespace postgres --create-namespace \
run: >
helm install postgresql oci://registry-1.docker.io/bitnamicharts/postgresql
--namespace postgres --create-namespace
--set auth.postgresPassword=${{ env.POSTGRES_PASSWORD }}
echo "Waiting for postgres to be ready"
-
name: Wait for Postgres
run: >
echo "Waiting for postgres to be ready" &&
kubectl wait pods --selector app.kubernetes.io/name=postgresql \
--for condition=Ready --namespace postgres --timeout=60s
-
Expand Down

0 comments on commit cfd56a5

Please sign in to comment.