From ed3bbfc469b97ede55cc3f41c5ac2e7ee6bb6552 Mon Sep 17 00:00:00 2001 From: Derek Roberts Date: Tue, 20 Aug 2024 12:34:21 -0700 Subject: [PATCH] Run ETL on TEST and PROD in parallel, not series --- .github/workflows/job-sync.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/job-sync.yml b/.github/workflows/job-sync.yml index 2cac81c0d..6e427b5ea 100644 --- a/.github/workflows/job-sync.yml +++ b/.github/workflows/job-sync.yml @@ -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 @@ -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 }}