Skip to content

Instantly share code, notes, and snippets.

@jorgedjr21
Created September 30, 2019 00:09
Show Gist options
  • Save jorgedjr21/4bf9208e2c9a5c4052808599a7a0daa9 to your computer and use it in GitHub Desktop.
Save jorgedjr21/4bf9208e2c9a5c4052808599a7a0daa9 to your computer and use it in GitHub Desktop.
name: myworkflow
on: [push]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:11
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: ""
POSTGRES_DB: postgres
ports:
- 5432/tcp
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment