Skip to content

Commit

Permalink
fix: only build liquibase once per run - submit batch for subsequent 3 (
Browse files Browse the repository at this point in the history
  • Loading branch information
fibble authored Jan 28, 2025
1 parent 71922e9 commit 4f32ef7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 5 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -328,6 +328,7 @@ jobs:
with:
version: ${{ needs.get-version.outputs.api }}
push: true
submit_job: true
account: nonprod
environment: dev
dry_run: false
Expand Down Expand Up @@ -397,7 +398,8 @@ jobs:
uses: ./.github/workflows/run-liquibase.yaml
with:
version: ${{ needs.get-version.outputs.api }}
push: true
push: false
submit_job: true
account: nonprod
environment: int
dry_run: false
Expand Down Expand Up @@ -576,7 +578,8 @@ jobs:
uses: ./.github/workflows/run-liquibase.yaml
with:
version: ${{ needs.get-version.outputs.api }}
push: true
push: false
submit_job: true
account: prod
environment: prep
dry_run: false
Expand Down Expand Up @@ -684,7 +687,8 @@ jobs:
uses: ./.github/workflows/run-liquibase.yaml
with:
version: ${{ needs.get-version.outputs.api }}
push: true
push: false
submit_job: true
account: prod
environment: prod
dry_run: false
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/run-liquibase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@ on:
type: boolean
required: false
default: false
submit_job:
type: boolean
required: false
default: false
secrets:
VOL_GITHUB_APP_PRIVATE_KEY:
required: true
Expand Down Expand Up @@ -154,7 +158,7 @@ jobs:
job_status: ${{ steps.check-status.outputs.status }}
needs: build
if: |
(inputs.push || (github.event_name == 'workflow_dispatch' && inputs.submit_job == 'true'))
(inputs.push || inputs.submit_job || (github.event_name == 'workflow_dispatch' && inputs.submit_job == 'true'))
runs-on: ubuntu-latest
steps:
- name: Configure AWS credentials
Expand Down
2 changes: 1 addition & 1 deletion app/api/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ phpcs.xml
phpstan.neon
phpunit.xml
psalm.xml
# Trigger CD - 2025-01-27-1208
# Trigger CD - 2025-01-28-09:46

0 comments on commit 4f32ef7

Please sign in to comment.