Skip to content

Commit

Permalink
fix(ci): keep working on prod rollout (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Mar 12, 2024
1 parent c8b6620 commit 9168fb9
Showing 1 changed file with 3 additions and 16 deletions.
19 changes: 3 additions & 16 deletions .github/workflows/prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,25 +3,12 @@ name: PROD Release
on:
release:
types: [published]
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

jobs:
vars:
name: Set Variables
outputs:
pr: ${{ steps.pr.outputs.pr }}
runs-on: ubuntu-22.04
timeout-minutes: 1
steps:
# Get PR number for squash merges to main
- name: PR Number
id: pr
uses: bcgov-nr/action-get-pr@v0.0.1

deploys:
name: PROD Deployments
environment: prod
Expand All @@ -43,11 +30,11 @@ jobs:
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: true
parameters:
-p ZONE=prod -p PROMOTE=${{ github.repository }}/${{ matrix.name }}:test
-p ZONE=prod -p PROMOTE=${{ github.repository }}/${{ matrix.name }}:latest

image-promotions:
name: Promote Images
needs: [vars, deploys]
needs: [deploys]
permissions:
packages: write
runs-on: ubuntu-22.04
Expand All @@ -61,4 +48,4 @@ jobs:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
tags: prod
target: ${{ needs.vars.outputs.pr }}
target: latest

0 comments on commit 9168fb9

Please sign in to comment.