-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (65 loc) · 2.63 KB
/
ci-openshift-test.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Build And Add Job to Openshift Test
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
builds:
name: Builds
runs-on: ubuntu-22.04
permissions:
packages: write
timeout-minutes: 10
steps:
- uses: bcgov-nr/action-builder-ghcr@v2.2.0
with:
package: sris
tag: latest
build_file: ./Dockerfile
build_context: .
deploy:
name: Deploy
runs-on: ubuntu-22.04
needs: [builds]
environment: test # read secrets from test environment in github.
steps:
- uses: bcgov-nr/action-deployer-openshift@v2.3.0
with:
oc_server: ${{ secrets.OPENSHIFT_SERVER }}
oc_namespace: ${{ vars.OC_NAMESPACE }}
oc_token: ${{ secrets.OC_TOKEN }}
overwrite: true
penetration_test: false
file: ./openshift/sris-schedule-job.yml
parameters: |
APP_NAME=sris \
TAG=latest \
NAMESPACE=${{ vars.OC_NAMESPACE }} \
CHEFS_SOILS_FORM_ID=${{ secrets.CHEFS_SOILS_FORM_ID }} \
CHEFS_SOILS_API_KEY=${{ secrets.CHEFS_SOILS_API_KEY }} \
CHEFS_SOILS_FORM_VERSION=${{ secrets.CHEFS_SOILS_FORM_VERSION }} \
CHEFS_HV_FORM_ID=${{ secrets.CHEFS_HV_FORM_ID }} \
CHEFS_HV_API_KEY=${{ secrets.CHEFS_HV_API_KEY }} \
CHEFS_HV_FORM_VERSION=${{ secrets.CHEFS_HV_FORM_VERSION }} \
CHEFS_MAIL_FORM_ID=${{ secrets.CHEFS_MAIL_FORM_ID }} \
CHEFS_MAIL_API_KEY=${{ secrets.CHEFS_MAIL_API_KEY }} \
CHEFS_MAIL_FORM_VERSION=${{ secrets.CHEFS_MAIL_FORM_VERSION }} \
CHES_API_OAUTH_SECRET=${{ secrets.CHES_API_OAUTH_SECRET }} \
MAPHUB_USER=${{ secrets.MAPHUB_USER }} \
MAPHUB_PASS=${{ secrets.MAPHUB_PASS }} \
SRC_CSV_ID=${{ secrets.SRC_CSV_ID }} \
SRC_LAYER_ID=${{ secrets.SRC_LAYER_ID }} \
RCV_CSV_ID=${{ secrets.RCV_CSV_ID }} \
RCV_LAYER_ID=${{ secrets.RCV_LAYER_ID }} \
HV_CSV_ID=${{ secrets.HV_CSV_ID }} \
HV_LAYER_ID=${{ secrets.HV_LAYER_ID }} \
WEB_MAP_APP_ID=${{ secrets.WEB_MAP_APP_ID }} \
CHEFS_API_URL=${{ secrets.CHEFS_API_URL }} \
AUTH_URL=${{ secrets.AUTH_URL }} \
CHES_URL=${{ secrets.CHES_URL }} \
LOGLEVEL=${{ secrets.LOGLEVEL }} \
NOTICE_STANDARD_TIME=${{ secrets.NOTICE_STANDARD_TIME }} \
AGOL_UPDATE_FLAG=${{ secrets.AGOL_UPDATE_FLAG }} \
EMAIL_NOTIFY_FLAG=${{ secrets.EMAIL_NOTIFY_FLAG }} \
TIMEOUT_SECONDS=${{ secrets.TIMEOUT_SECONDS }} \