Skip to content

Commit

Permalink
fix(ci): run ETL on TEST and PROD in parallel, not series (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts authored Aug 20, 2024
1 parent 8d6703f commit 8a2f206
Showing 1 changed file with 18 additions and 4 deletions.
22 changes: 18 additions & 4 deletions .github/workflows/job-sync.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,9 @@ concurrency:
cancel-in-progress: false

jobs:
sync:
name: Sync
sync-test:
environment: test
name: Sync (TEST)
runs-on: ubuntu-latest
steps:
- name: Override OpenShift version
Expand All @@ -24,9 +25,22 @@ jobs:

- uses: actions/checkout@v4
- name: ETL (TEST)
environment: 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)
environment: prod
run: ./sync/oc_run.sh prod ${{ secrets.oc_token }}

0 comments on commit 8a2f206

Please sign in to comment.