Skip to content

Commit

Permalink
Update CD, refactor CI
Browse files Browse the repository at this point in the history
  • Loading branch information
dreads committed Dec 31, 2024
1 parent 756559b commit d24705b
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 20 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/liquibase_pro_cd_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ env:
# The Liquibase Search Path controls how Liquibase finds it's configurations.
# To ensure the correct config gets located first, keep "." at the end of this path.
# See https://docs.liquibase.com/concepts/changelogs/how-liquibase-finds-files.html
LIQUIBASE_SEARCH_PATH: "liquibase-process,."
LIQUIBASE_SEARCH_PATH: "."

# Location of the Custom Policy Checks settings file from the Liquibase Configuration Repo.
# See https://docs.liquibase.com/liquibase-pro/policy-checks/custom-policy-checks/home.html
Expand Down Expand Up @@ -110,25 +110,25 @@ jobs:
ENVIRONMENT: ${{needs.init.outputs.environment}}
run: echo "The $ENVIRONMENT environment was selected."

####################################################################
# Check out the source code and configuration
###################################################################
# Check out the source code
####################################################################
checkout-repo:
name: Check out repositories
needs: [init]
runs-on: [self-hosted]

steps:
# Check out the source code
- name: Checkout Database Source repo
# Check out the database change configuration code and workflows
- name: Checkout Database Change Configuration repo
uses: actions/checkout@v3

# Check out the Liquibase Configuration Repo to a folder, "liquibase-process"
- name: Checkout Liquibase Configuration repo
# Check out the SQL Repo to a folder, "liquibase-sql"
- name: Checkout Database Change SQL repo
uses: actions/checkout@v4
with:
repository: adeelmalik78/Automations
path: liquibase-process
repository: liquibase/cs-impl-guide-examples-sql
path: liquibase-sql

#####################################################################
# Perform the Database change control operations specified
Expand Down
16 changes: 5 additions & 11 deletions .github/workflows/liquibase_pro_ci_action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ env:
# The Liquibase Search Path controls how Liquibase finds it's configurations.
# To ensure the correct config gets located first, keep "." at the end of this path.
# See https://docs.liquibase.com/concepts/changelogs/how-liquibase-finds-files.html
LIQUIBASE_SEARCH_PATH: "liquibase-process,."
LIQUIBASE_SEARCH_PATH: "."

# Location of the Custom Policy Checks settings file from the Liquibase Configuration Repo.
# See https://docs.liquibase.com/liquibase-pro/policy-checks/custom-policy-checks/home.html
Expand Down Expand Up @@ -113,23 +113,17 @@ jobs:
runs-on: [self-hosted]

steps:
# Check out the source code
- name: Checkout Database Source repo
# Check out the database change configuration code and workflows
- name: Checkout Database Change Configuration repo
uses: actions/checkout@v3

# Check out the Liquibase Configuration Repo to a folder, "liquibase-process"
- name: Checkout Liquibase SQL repo
# Check out the SQL Repo to a folder, "liquibase-sql"
- name: Checkout Database Change SQL repo
uses: actions/checkout@v4
with:
repository: liquibase/cs-impl-guide-examples-sql
path: liquibase-sql

# # Check out the Liquibase Configuration Repo to a folder, "liquibase-process"
# - name: Checkout Liquibase Configuration repo
# uses: actions/checkout@v4
# with:
# repository: adeelmalik78/Automations
# path: liquibase-process


####################################################################
Expand Down

0 comments on commit d24705b

Please sign in to comment.