Skip to content

Commit

Permalink
Add postgres service
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Aug 12, 2024
1 parent b404821 commit 5b7eae3
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test_kubernetes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,23 @@ on:
jobs:
run-kubernets-tests:
runs-on: ubuntu-latest
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:543
steps:
- uses: actions/checkout@v3
- name: Kubernetes KinD Cluster
Expand Down

0 comments on commit 5b7eae3

Please sign in to comment.