-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (39 loc) · 1.01 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: postgresql-flyway-migrations
on:
- push
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_DB: db
POSTGRES_USER: user
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- uses: joshuaavalon/[email protected]
with:
url: jdbc:postgresql://postgres:5432/db
user: user
password: password
locations: filesystem:./sql
- run: echo 'testing'
deploy-to-prod:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: joshuaavalon/[email protected]
with:
url: ${{ secrets.DB_URI }}
user: ${{ secrets.DB_U }}
password: ${{ secrets.KUNLE_BABA }}
locations: filesystem:./sql
- run: echo 'deploying to prod'