From d24705bf78db21c6700bc5e64ea55a91f6196edb Mon Sep 17 00:00:00 2001 From: dreads Date: Tue, 31 Dec 2024 12:50:55 -0600 Subject: [PATCH] Update CD, refactor CI --- .github/workflows/liquibase_pro_cd_action.yml | 18 +++++++++--------- .github/workflows/liquibase_pro_ci_action.yml | 16 +++++----------- 2 files changed, 14 insertions(+), 20 deletions(-) diff --git a/.github/workflows/liquibase_pro_cd_action.yml b/.github/workflows/liquibase_pro_cd_action.yml index 0db986c..68ecd6f 100644 --- a/.github/workflows/liquibase_pro_cd_action.yml +++ b/.github/workflows/liquibase_pro_cd_action.yml @@ -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 @@ -110,8 +110,8 @@ 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 @@ -119,16 +119,16 @@ 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 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 diff --git a/.github/workflows/liquibase_pro_ci_action.yml b/.github/workflows/liquibase_pro_ci_action.yml index d6bea8e..2ae8230 100644 --- a/.github/workflows/liquibase_pro_ci_action.yml +++ b/.github/workflows/liquibase_pro_ci_action.yml @@ -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 @@ -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 ####################################################################