Skip to content

Commit

Permalink
chore: Fix deploy production workflow (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
sggerard authored Nov 27, 2024
1 parent 281c5ba commit 4b3dae9
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions .github/workflows/deploy.prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,35 +4,24 @@ on:
workflow_dispatch:
inputs:
pr_no:
description: "PR-numbered container set to deploy"
description: "PR or tag to deploy (default = 'test')"
type: number
required: false
default: "test"

concurrency:
# Do not interrupt previous workflows
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
vars:
name: Set Variables
outputs:
pr: ${{ steps.pr.outputs.pr }}
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-prod:
name: Deploy (prod)
needs: [vars]
uses: ./.github/workflows/.deployer.yml
secrets: inherit
with:
environment: prod
tag: ${{ inputs.pr_no}}
params:
--set cms.deploymentStrategy=RollingUpdate
--set frontend.deploymentStrategy=RollingUpdate
Expand All @@ -43,7 +32,7 @@ jobs:
--set frontend.replicaCount=2
promote:
name: Promote Images
needs: [deploy-prod, vars]
needs: [deploy-prod]
runs-on: ubuntu-24.04
permissions:
packages: write
Expand All @@ -56,5 +45,5 @@ jobs:
with:
registry: ghcr.io
repository: ${{ github.repository }}/${{ matrix.package }}
target: ${{ needs.vars.outputs.pr }}
target: ${{ inputs.pr_no }}
tags: prod

0 comments on commit 4b3dae9

Please sign in to comment.