From 2dcea4e8fba5a321ca627d26ef898a6e0d0e7bf7 Mon Sep 17 00:00:00 2001 From: Chris Hawkins <94678272+csnhawkins@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:46:40 +0000 Subject: [PATCH 1/6] Changing ${{ secrets.FLYWAY_CLI_INSTALL_CHECK }} to variable rather than plaintext --- .github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml b/.github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml index a13d0f3..f713775 100644 --- a/.github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml +++ b/.github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml @@ -36,7 +36,7 @@ env: FIRST_UNDO_SCRIPT: "002" # This should match the first undo version in your project # Optional - Validate Flyway CLI installation for ephemeral agents - FLYWAY_CLI_INSTALL_CHECK: "false" # Setting to false will skip the Flyway CLI check step + FLYWAY_CLI_INSTALL_CHECK: "${{ secrets.FLYWAY_CLI_INSTALL_CHECK }}" # Setting to false will skip the Flyway CLI check step FLYWAY_VERSION: "Latest" # This outlines the version of Flyway CLI that will be downloaded if no Flyway CLI is detected on the target agent (Examples - '11.0.0' for specific version. Or 'Latest' for latest version) FLYWAY_INSTALL_DIRECTORY: "" # The path on the agent machine where Flyway CLI will be installed From fbd135e67deba50d72b8b9466bc99df2210ae772 Mon Sep 17 00:00:00 2001 From: Chris Hawkins <94678272+csnhawkins@users.noreply.github.com> Date: Mon, 27 Jan 2025 14:46:57 +0000 Subject: [PATCH 2/6] Changing ${{ secrets.FLYWAY_CLI_INSTALL_CHECK }} to variable rather than plaintext --- .github/workflows/GitHub-Flyway-CICD-Pipeline_Windows.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/GitHub-Flyway-CICD-Pipeline_Windows.yml b/.github/workflows/GitHub-Flyway-CICD-Pipeline_Windows.yml index 7b40e45..2770a16 100644 --- a/.github/workflows/GitHub-Flyway-CICD-Pipeline_Windows.yml +++ b/.github/workflows/GitHub-Flyway-CICD-Pipeline_Windows.yml @@ -35,7 +35,7 @@ env: FIRST_UNDO_SCRIPT: "002" # This should match the first undo version in your project # Optional: Validate Flyway CLI installation for ephemeral agents. - FLYWAY_CLI_INSTALL_CHECK: "false" # Setting to false will skip the Flyway CLI check step + FLYWAY_CLI_INSTALL_CHECK: "${{ secrets.FLYWAY_CLI_INSTALL_CHECK }}" # Setting to false will skip the Flyway CLI check step FLYWAY_VERSION: "Latest" # This outlines the version of Flyway CLI that will be downloaded if no Flyway CLI is detected on the target agent (Examples - '11.0.0' for specific version. Or 'Latest' for latest version) FLYWAY_INSTALL_DIRECTORY: "C:\\FlywayCLI\\" # The path on the agent machine where Flyway CLI will be installed From 3e86404044326a5d4f801e50d814f01ebba89dfe Mon Sep 17 00:00:00 2001 From: Chris Hawkins <94678272+csnhawkins@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:02:32 +0000 Subject: [PATCH 3/6] Updating Build to use Azure SQL DB --- flyway.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flyway.toml b/flyway.toml index 778dce7..d453938 100644 --- a/flyway.toml +++ b/flyway.toml @@ -26,7 +26,7 @@ displayName = "Check (Reporting) database" provisioner = "clean" [environments.Build] -url = "jdbc:sqlserver://localhost;databaseName=AutoPilotBuild;encrypt=true;integratedSecurity=true;trustServerCertificate=true" +url = "jdbc:sqlserver://azure-se-sql-database.database.windows.net;authentication=sqlPassword;databaseName=AutoPilotBuild;encrypt=true;trustServerCertificate=true" displayName = "Build database" [flyway] From 12d33604f49069d8c4cbceece75f406a2d2222f0 Mon Sep 17 00:00:00 2001 From: Chris Hawkins <94678272+csnhawkins@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:11:20 +0000 Subject: [PATCH 4/6] Reverting to localhost toml for build --- flyway.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flyway.toml b/flyway.toml index d453938..778dce7 100644 --- a/flyway.toml +++ b/flyway.toml @@ -26,7 +26,7 @@ displayName = "Check (Reporting) database" provisioner = "clean" [environments.Build] -url = "jdbc:sqlserver://azure-se-sql-database.database.windows.net;authentication=sqlPassword;databaseName=AutoPilotBuild;encrypt=true;trustServerCertificate=true" +url = "jdbc:sqlserver://localhost;databaseName=AutoPilotBuild;encrypt=true;integratedSecurity=true;trustServerCertificate=true" displayName = "Build database" [flyway] From d1bb57715b8f2de67a958dc09a8a00e1d0be93fa Mon Sep 17 00:00:00 2001 From: Chris Hawkins <94678272+csnhawkins@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:34:25 +0000 Subject: [PATCH 5/6] Changing AutoPilot references to Autopilot (#2) Renamed AutoPilot references to Autopilot --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 2d598cb..c8e3461 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -Flyway AutoPilot allows you to trial an end-to-end database development and automated deployment process with next to no setup. With Flyway AutoPilot, you get: +Redgate Flyway Autopilot allows you to trial an end-to-end database development and automated deployment process with next to no setup. With Flyway Autopilot, you get: 1. A SQL script to create ready-to-use sample databases, with the ability to test additional objects and scenarios 2. A pre-configured Flyway project to get started quickly From 5981286c5d100d5f560f4a95d46a83ee9c3a5dad Mon Sep 17 00:00:00 2001 From: Huxley Kendell <114421471+HuxleyKendell@users.noreply.github.com> Date: Mon, 27 Jan 2025 15:59:09 +0000 Subject: [PATCH 6/6] Update GitHub-Flyway-CICD-Pipeline_Linux.yml (#3) --- .github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml b/.github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml index f713775..1b8b781 100644 --- a/.github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml +++ b/.github/workflows/GitHub-Flyway-CICD-Pipeline_Linux.yml @@ -3,11 +3,9 @@ name: GitHub-Flyway-AutoPilot-Pipeline-Linux on: - # Triggers the workflow on push or pull request events but only for the "release" branch - #push: - #branches: - #- release - #- 'migrations/**' + pull_request: + branches: + - main # Allows you to run this workflow manually from the Actions tab workflow_dispatch: