diff --git a/.github/workflows/etl-prod.yml b/.github/workflows/etl-prod.yml new file mode 100644 index 000000000..6685d8f31 --- /dev/null +++ b/.github/workflows/etl-prod.yml @@ -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 }} diff --git a/.github/workflows/job-sync.yml b/.github/workflows/etl-test.yml similarity index 52% rename from .github/workflows/job-sync.yml rename to .github/workflows/etl-test.yml index 5a35d448e..2de83e655 100644 --- a/.github/workflows/job-sync.yml +++ b/.github/workflows/etl-test.yml @@ -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 }}