generated from BCDevOps/opendev-template
-
Notifications
You must be signed in to change notification settings - Fork 3
40 lines (34 loc) · 1.12 KB
/
deploy-prod.yml
File metadata and controls
40 lines (34 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: Deploy Prod Environment
on:
release:
types: [published]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
runs-on: ubuntu-22.04
timeout-minutes: 20
permissions:
contents: read
environment:
name: prod
url: https://hesp.apps.silver.devops.gov.bc.ca
steps:
- uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6
- uses: actions/checkout@85e6279cec87321a52edac9c87bce653a07cf6c2
with:
ref: main
- name: Authenticate and set context
uses: redhat-actions/oc-login@dfbd9912672664f9df2023c1c16e07bcf306043c
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: ${{ vars.OPENSHIFT_NAMESPACE }}
insecure_skip_tls_verify: true
- name: Deploy apps with Helm chart
run: |
vtag=${{ github.event.release.tag_name }}
make upgrade NAMESPACE=${{ vars.OPENSHIFT_NAMESPACE }} IMAGE_TAG=${vtag//v}
kubectl rollout status deployment/hesp-app
working-directory: ./helm/main