-
Notifications
You must be signed in to change notification settings - Fork 9
41 lines (38 loc) · 1.24 KB
/
hasura-ci-migrations.yaml
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: Hasura Migration
on:
push:
branches:
- master
jobs:
hasura_migration:
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v3
- name: Apply Hasura Metadata
uses: ./.github/actions/hasura-ci-cd
# uses: tibotiber/[email protected]
with:
args: metadata apply
env:
HASURA_ENDPOINT: ${{ secrets.HASURA_ENDPOINT }}
HASURA_ADMIN_SECRET: ${{ secrets.HASURA_ADMIN_SECRET }}
HASURA_WORKDIR: local-to-cloud
- name: Apply Hasura Migrations
uses: ./.github/actions/hasura-ci-cd
# uses: tibotiber/[email protected]
with:
args: migrate apply --all-databases
env:
HASURA_ENDPOINT: ${{ secrets.HASURA_ENDPOINT }}
HASURA_ADMIN_SECRET: ${{ secrets.HASURA_ADMIN_SECRET }}
HASURA_WORKDIR: local-to-cloud
- name: Reload Hasura Metadata
uses: ./.github/actions/hasura-ci-cd
# uses: tibotiber/[email protected]
with:
args: metadata reload
env:
HASURA_ENDPOINT: ${{ secrets.HASURA_ENDPOINT }}
HASURA_ADMIN_SECRET: ${{ secrets.HASURA_ADMIN_SECRET }}
HASURA_WORKDIR: local-to-cloud