-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (38 loc) · 1.06 KB
/
estore.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
name: EStore Inventory Pipeline
on:
push:
branches:
- master
pull_request:
paths:
- 'projects/estore/inventory/migrations/*'
permissions:
contents: read
pull-requests: write
jobs:
setup:
runs-on: ubuntu-latest
env:
GITHUB_TOKEN: ${{ github.token }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Atlas
uses: ariga/setup-atlas@v0
with:
cloud-token: ${{ secrets.ATLAS_PUBLIC_TENANT_TOKEN }}
- name: Lint Migrations
uses: ariga/atlas-action/migrate/lint@v1
with:
dir-name: 'estore-inventory'
dir: 'file://projects/estore/inventory/migrations'
env: 'local'
config: 'file://projects/estore/atlas.hcl'
- name: Push to Registry
if: github.ref == 'refs/heads/master'
uses: ariga/atlas-action/migrate/push@v1
with:
dir-name: 'estore-inventory'
env: 'local'
dir: 'file://projects/estore/inventory/migrations'
config: 'file://projects/estore/atlas.hcl'