Skip to content

Commit

Permalink
ci(fix): set tag_fallback to avoid unnecessary builds (also fix tags …
Browse files Browse the repository at this point in the history
…again) (#725)

* ci(fix): tags III

* ci(fix): tag_fallback
  • Loading branch information
DerekRoberts authored Dec 17, 2024
1 parent 4ce46fa commit 1f604fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/merge-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
steps:
# Get PR number for squash merges to main
- name: PR Number
id: pr
id: tag
uses: bcgov-nr/[email protected]

deploy-test:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
overwrite: ${{ matrix.overwrite }}
penetration_test: false
parameters:
-p ZONE=${{ env.ZONE }} -p TAG=${{ needs.vars.outputs.pr }}
-p ZONE=${{ env.ZONE }} -p TAG=${{ needs.vars.outputs.tag }}
${{ matrix.parameters }}
post_rollout: ${{ matrix.post_rollout }}

Expand Down Expand Up @@ -126,7 +126,7 @@ jobs:
overwrite: ${{ matrix.overwrite }}
penetration_test: false
parameters:
-p ZONE=${{ env.ZONE }} -p TAG=${{ needs.vars.outputs.pr }}
-p ZONE=${{ env.ZONE }} -p TAG=${{ needs.vars.outputs.tag }}
${{ matrix.parameters }}
post_rollout: ${{ matrix.post_rollout }}

Expand All @@ -142,5 +142,5 @@ jobs:
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.component }}
target: ${{ needs.vars.outputs.pr }}
target: ${{ needs.vars.outputs.tag }}
tags: prod
2 changes: 1 addition & 1 deletion .github/workflows/pr-open.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
build_file: ${{ matrix.build_file }}
keep_versions: 100
tag: ${{ github.event.number }}
tag_fallback: test
tag_fallback: latest
token: ${{ secrets.GITHUB_TOKEN }}
triggers: ${{ matrix.triggers }}

Expand Down

0 comments on commit 1f604fe

Please sign in to comment.