|
13 | 13 | JDBC_PROD1: ${{ vars.JDBC_PROD1 }} |
14 | 14 | JDBC_PROD2: ${{ vars.JDBC_PROD2 }} |
15 | 15 | JDBC_CHECK: ${{ vars.JDBC_CHECK }} |
16 | | - DB_PROD_2: ${{ vars.DB_NAME_PROD_2 }} # Used in report filename |
| 16 | + DB_PROD_1: ${{ vars.DB_NAME_PROD_1 }} # Used in report filename |
17 | 17 |
|
18 | 18 | # Repository Secrets - Create these in Project Settings > Secrets > Actions |
19 | 19 | TOKEN: ${{ secrets.FLYWAY_TOKEN }} |
20 | | - DB_USER_PROD: ${{ secrets.DB_USER_NAME_QA }} |
21 | | - DB_USER_PW_PROD: ${{ secrets.DB_USER_PW_QA }} |
| 20 | + DB_USER_PROD: ${{ secrets.DB_USER_NAME_PROD1 }} |
| 21 | + DB_USER_PW_PROD: ${{ secrets.DB_USER_PW_PROD1 }} |
| 22 | + # If PROD2 needs a different User & Password input here and replace paramaters in flyway-deploy-prod-2 run step. |
22 | 23 | # End of Environment Secrets # |
23 | 24 |
|
24 | 25 | generateDriftAndChangeReport: true |
|
43 | 44 |
|
44 | 45 | - name: Create Drift and Change Report |
45 | 46 | run: | |
46 | | - flyway -email=${{ env.EMAIL }} -token=${{ env.TOKEN }} check -code -changes -drift -dryrun -cleanDisabled="false" -user=${{ env.DB_USER_PROD }} -password=${{ env.DB_USER_PW_PROD }} -url=${{ env.JDBC_PROD2 }} -check.buildUser=${{ env.DB_USER_PROD }} -check.buildPassword=${{ env.DB_USER_PW_PROD }} -check.buildUrl="${{ env.JDBC_CHECK }}" -reportFilename="${{ github.workspace }}\reports\${{ env.DB_PROD_2 }}-Run-${{ github.run_id }}-Check-Report.html" -IAgreeToTheEula -locations="filesystem:${{ github.workspace }}\migrations" -configFiles="${{ github.workspace }}/flyway.toml" -baselineOnMigrate=true -errorOverrides=S0001:0:I- |
| 47 | + flyway -email=${{ env.EMAIL }} -token=${{ env.TOKEN }} check -code -changes -drift -dryrun -cleanDisabled="false" -user=${{ env.DB_USER_PROD }} -password=${{ env.DB_USER_PW_PROD }} -url=${{ env.JDBC_PROD2 }} -check.buildUser=${{ env.DB_USER_PROD }} -check.buildPassword=${{ env.DB_USER_PW_PROD }} -check.buildUrl="${{ env.JDBC_CHECK }}" -reportFilename="${{ github.workspace }}\reports\${{ env.DB_PROD_1 }}-Run-${{ github.run_id }}-Check-Report.html" -IAgreeToTheEula -locations="filesystem:${{ github.workspace }}\migrations" -configFiles="${{ github.workspace }}/flyway.toml" -baselineOnMigrate=true -errorOverrides=S0001:0:I- |
47 | 48 | continue-on-error: true |
48 | 49 |
|
49 | 50 | # Create a directory to stage the artifact files |
|
57 | 58 | name: flyway-reports |
58 | 59 | path: reports/ |
59 | 60 |
|
60 | | - # GitHub Actions doesn't natively support manual approval steps like some other CI/CD tools (e.g., Azure DevOps or GitLab). |
| 61 | + # GitHub Actions can support manual approval steps like some other CI/CD tools (e.g., Azure DevOps or GitLab). |
61 | 62 | # You can achieve similar functionality using environments with required reviewers or by integrating external approval mechanisms. |
62 | 63 | # Alternatively maybe a Review Branch prior to pulling to Production or another downstream environment. |
63 | 64 |
|
|
0 commit comments