-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (36 loc) · 1.18 KB
/
deploy-uat.yml
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
41
42
name: Deploy UAT Environment
on: workflow_dispatch
jobs:
deploy:
runs-on: ubuntu-22.04
timeout-minutes: 5
permissions:
contents: read
environment:
name: uat
url: https://uat-strdata.apps.silver.devops.gov.bc.ca/
steps:
- uses: hmarr/debug-action@a701ed95a46e6f2fb0df25e1a558c16356fae35a
- uses: actions/checkout@96f53100ba2a5449eb71d2e6604bbcd94b9449b5
with:
ref: main # one source of truth for CI/CD pipeline
- name: Fail on branches
run: exit 1
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
- name: Authenticate and set context
uses: redhat-actions/oc-login@9b79eb6d8ec51bce42cb4e77f0a174fc80cf3cb9
with:
openshift_server_url: ${{ secrets.OPENSHIFT_SERVER }}
openshift_token: ${{ secrets.OPENSHIFT_TOKEN }}
namespace: f4a30d-test
insecure_skip_tls_verify: true
- name: Deploy apps with Helm chart
run: |
vtag=${{ github.ref_name }}
make upgrade \
NAMESPACE=f4a30d-test \
NAME=strdss-uat \
ENV_NAME=uat \
IMAGE_TAG_FRONTEND=${vtag//v} \
IMAGE_TAG_BACKEND=${vtag//v} \
working-directory: ./helm/main