Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ci): run ETL on TEST and PROD in parallel, not series #1537

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 }}
Loading