generated from bcgov/quickstart-openshift
-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (40 loc) · 1.34 KB
/
job-sync.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
43
44
45
46
name: ETL Sync
on:
schedule: [cron: "0 */2 * * *"] # Every other hour on the hour
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false
jobs:
sync-test:
environment: test
name: Sync (TEST)
runs-on: ubuntu-latest
steps:
- name: Override OpenShift version
env:
OC: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.13/openshift-client-linux.tar.gz
run: |
# Download and extract with retry, continuing on error
(wget ${{ env.OC }} -qcO - | tar -xzvf - oc)|| !! || true
oc version
working-directory: /usr/local/bin/
- uses: actions/checkout@v4
- name: ETL (TEST)
run: ./sync/oc_run.sh test ${{ secrets.oc_token }}
sync-prod:
environment: prod
name: Sync (PROD)
runs-on: ubuntu-latest
steps:
- name: Override OpenShift version
env:
OC: https://mirror.openshift.com/pub/openshift-v4/clients/ocp/stable-4.13/openshift-client-linux.tar.gz
run: |
# Download and extract with retry, continuing on error
(wget ${{ env.OC }} -qcO - | tar -xzvf - oc)|| !! || true
oc version
working-directory: /usr/local/bin/
- uses: actions/checkout@v4
- name: ETL (PROD)
run: ./sync/oc_run.sh prod ${{ secrets.oc_token }}