Skip to content

Commit

Permalink
fix(ci): merge workflow deploys (#1854)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Mar 6, 2024
1 parent d3e2243 commit cc9ce9e
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/merge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,25 +33,27 @@ jobs:
id: pr
uses: bcgov-nr/action-get-pr@v0.0.1

# https://github.com/bcgov-nr/action-deployer-openshift
deploy-test:
name: Deploy (test)
needs: [vars]
uses: ./.github/workflows/.deploy.yml
secrets: inherit
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.deployer.yml@v0.4.0
secrets:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
environment: test
tag: ${{ needs.vars.outputs.pr }}
release: test

deploy-prod:
name: Deploy (prod)
needs: [deploy-test, vars]
uses: ./.github/workflows/.deploy.yml
secrets: inherit
uses: bcgov/quickstart-openshift-helpers/.github/workflows/.deployer.yml@v0.4.0
secrets:
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
with:
autoscaling: true
environment: prod
tag: ${{ needs.vars.outputs.pr }}
release: prod
params:
--set backend.deploymentStrategy=RollingUpdate
Expand Down

0 comments on commit cc9ce9e

Please sign in to comment.