Skip to content

Commit

Permalink
chore(ci): split TEST and PROD ETL jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
DerekRoberts committed Oct 17, 2024
1 parent bcf02f8 commit 6d29483
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 16 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/etl-prod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ETL PROD

on:
schedule: [cron: "30 */2 * * *"] # Every other hour on the hour
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: false

jobs:
etl-prod:
environment: prod
name: ETL (PROD)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
- name: Run ./sync/oc_run.sh
run: ./sync/oc_run.sh prod ${{ secrets.oc_token }}
20 changes: 4 additions & 16 deletions .github/workflows/job-sync.yml → .github/workflows/etl-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: ETL Sync
name: ETL TEST

on:
schedule: [cron: "0 */2 * * *"] # Every other hour on the hour
Expand All @@ -9,26 +9,14 @@ concurrency:
cancel-in-progress: false

jobs:
sync-test:
etl-test:
environment: test
name: Sync (TEST)
name: ETL (TEST)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
- name: ETL (TEST)
- name: Run ./sync/oc_run.sh
run: ./sync/oc_run.sh test ${{ secrets.oc_token }}

sync-prod:
environment: prod
name: Sync (PROD)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: redhat-actions/openshift-tools-installer@v1
with:
oc: "4"
- name: ETL (PROD)
run: ./sync/oc_run.sh prod ${{ secrets.oc_token }}

0 comments on commit 6d29483

Please sign in to comment.