Skip to content

Commit

Permalink
Moving checkins individually
Browse files Browse the repository at this point in the history
  • Loading branch information
molivasdat authored Sep 5, 2023
1 parent 628e1f3 commit 0542d14
Showing 1 changed file with 29 additions and 12 deletions.
41 changes: 29 additions & 12 deletions .github/workflows/liquibase_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,24 @@ jobs:

steps:
- uses: actions/checkout@v3

with:
token: ${{ secrets.LB_GH_TOKEN }}
- name: Running Flow
uses: docker://liquibase/liquibase
with:
args: flow --flow-file=liquibase.flowfile.yaml
env:
LB_ENVIRONMENT: DEV
- name: Checkin snapshot
run: |
git config -l
git config user.name github-actions
git config user.email [email protected]
git config -l
git add .
git commit -m "New Snapshots"
git push

Test_Job:
needs: Build_Job
Expand All @@ -49,13 +60,23 @@ jobs:

steps:
- uses: actions/checkout@v3

with:
token: ${{ secrets.LB_GH_TOKEN }}
- name: Running Flow
uses: docker://liquibase/liquibase
with:
args: flow --flow-file=liquibase.flowfile.yaml
env:
LB_ENVIRONMENT: TEST
- name: Checkin snapshot
run: |
git config -l
git config user.name github-actions
git config user.email [email protected]
git config -l
git add .
git commit -m "New Snapshots"
git push
Deploy_Prod_Job:
needs: Test_Job
Expand All @@ -65,26 +86,22 @@ jobs:

steps:
- uses: actions/checkout@v3

with:
token: ${{ secrets.LB_GH_TOKEN }}
- name: Running Flow
uses: docker://liquibase/liquibase
with:
args: flow --flow-file=liquibase.flowfileprod.yaml
env:
LB_ENVIRONMENT: PROD

Checkin_Snapshots:
needs: Deploy_Prod_Job
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
token: ${{ secrets.LB_GH_TOKEN }}
- run: |
- name: Checkin snapshot
run: |
git config -l
git config user.name github-actions
git config user.email [email protected]
git config -l
git add .
git commit -m "New Snapshots"
git push

0 comments on commit 0542d14

Please sign in to comment.