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

chore(ci): split TEST and PROD ETL jobs #1681

Merged
merged 2 commits into from
Oct 17, 2024
Merged
Changes from 1 commit
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
Next Next commit
chore(ci): split TEST and PROD ETL jobs
  • Loading branch information
DerekRoberts committed Oct 17, 2024
commit 6d29483d46cf42f97901ea11ca50eae0924e437e
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 }}
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
@@ -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 }}