generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 2
39 lines (35 loc) · 976 Bytes
/
demo.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
name: Deploy Demo
on:
workflow_dispatch:
inputs:
environment:
description: "Deployment environment - test --> vault secrets"
required: true
type: choice
options: ["test"]
default: "test"
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
uninstall-demo:
name: Uninstall (demo)
environment: test
runs-on: ubuntu-22.04
steps:
- name: uninstall
run: |
oc login --token=${{ secrets.oc_token }} --server=${{ vars.oc_server }}
oc project ${{ vars.OC_NAMESPACE }} # Safeguard!
helm uninstall onroutebc-demo || true
deploy-demo:
name: Deploys (demo)
uses: ./.github/workflows/deploy.yml
needs: uninstall-demo
secrets: inherit
with:
environment: ${{inputs.environment}} #test env -> test database
tag: ${{inputs.environment}}
release: "demo"
vault_role: "nonprod"
vault_zone: "staging"