generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ci(fix): promoted tags * Param ordering
- Loading branch information
1 parent
a706290
commit a8fa53b
Showing
6 changed files
with
51 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,8 +16,21 @@ concurrency: | |
cancel-in-progress: true | ||
|
||
jobs: | ||
vars: | ||
name: Set Variables | ||
outputs: | ||
tag: ${{ steps.tag.outputs.tag }} | ||
runs-on: ubuntu-24.04 | ||
timeout-minutes: 1 | ||
steps: | ||
# Get PR number for squash merges to main | ||
- name: PR Number | ||
id: pr | ||
uses: bcgov-nr/[email protected] | ||
|
||
deploy-test: | ||
name: TEST Deploys | ||
needs: [vars] | ||
environment: test | ||
env: | ||
ZONE: test | ||
|
@@ -62,24 +75,10 @@ jobs: | |
overwrite: ${{ matrix.overwrite }} | ||
penetration_test: false | ||
parameters: | ||
-p ZONE=${{ env.ZONE }} ${{ matrix.parameters }} | ||
-p ZONE=${{ env.ZONE }} -p TAG=${{ needs.vars.outputs.pr }} | ||
${{ matrix.parameters }} | ||
post_rollout: ${{ matrix.post_rollout }} | ||
|
||
prod-promotions: | ||
name: Promote images to PROD | ||
needs: [deploy-test] | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
component: [api, admin, db, public] | ||
steps: | ||
- uses: shrink/actions-docker-registry-tag@v4 | ||
with: | ||
registry: ghcr.io | ||
repository: ${{ github.repository }}/${{ matrix.component }} | ||
target: test | ||
tags: prod | ||
|
||
deploy-prod: | ||
name: PROD Deploys | ||
needs: [prod-promotions] | ||
|
@@ -127,5 +126,21 @@ jobs: | |
overwrite: ${{ matrix.overwrite }} | ||
penetration_test: false | ||
parameters: | ||
-p ZONE=${{ env.ZONE }} ${{ matrix.parameters }} | ||
-p ZONE=${{ env.ZONE }} -p TAG=${{ needs.vars.outputs.pr }} | ||
${{ matrix.parameters }} | ||
post_rollout: ${{ matrix.post_rollout }} | ||
|
||
prod-promotions: | ||
name: Promote images to PROD | ||
needs: [deploy-prod, vars] | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
matrix: | ||
component: [api, admin, db, public] | ||
steps: | ||
- uses: shrink/actions-docker-registry-tag@v4 | ||
with: | ||
registry: ghcr.io | ||
repository: ${{ github.repository }}/${{ matrix.component }} | ||
target: ${{ needs.vars.outputs.pr }} | ||
tags: prod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters