Skip to content

Import job Scaleway

Import job Scaleway #8

name: Import job Scaleway
on:
workflow_dispatch: # https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#workflow_dispatch
jobs:
start-job-image:
strategy:
matrix:
dates: [
{start_date: "2023-04-01", end_date: "2023-05-01"}
# ,{start_date: "2023-05-01", end_date: "2023-06-01"}
# ,{start_date: "2023-06-01", end_date: "2023-07-01"}
# ,{start_date: "2023-07-01", end_date: "2023-08-01"}
# ,{start_date: "2023-08-01", end_date: "2023-09-01"}
# ,{start_date: "2023-09-01", end_date: "2023-10-01"}
# ,{start_date: "2023-10-01", end_date: "2023-11-01"}
# ,{start_date: "2023-11-01", end_date: "2023-12-01"}
# ,{start_date: "2023-12-01", end_date: "2024-01-01"}
# ,{start_date: "2024-01-01", end_date: "2024-02-01"}
# ,{start_date: "2024-02-01", end_date: "2024-03-01"}
# ,{start_date: "2024-03-01", end_date: "2024-04-01"}
# ,{start_date: "2024-04-01", end_date: "2024-05-01"}
# ,{start_date: "2024-05-01", end_date: "2024-06-01"}
# ,{start_date: "2024-06-01", end_date: "2024-07-01"}
# ,{start_date: "2024-07-01", end_date: "2024-08-01"}
# ,{start_date: "2024-08-01", end_date: "2024-09-01"}
# ,{start_date: "2024-09-01", end_date: "2024-10-01"}
# ,{start_date: "2024-10-01", end_date: "2024-11-01"}
]
runs-on: ubuntu-latest
steps:
- name: start import job to reapply logic to all elements start_date matrix
uses: jawher/[email protected]
env:
SCW_ACCESS_KEY: ${{ secrets.SCW_ACCESS_KEY }}
SCW_SECRET_KEY: ${{ secrets.SCW_SECRET_KEY }}
SCW_ORGANIZATION_ID: ${{ secrets.SCW_ORGANIZATION_ID }}
SCW_ZONE: ${{ secrets.SCW_ZONE }}
with:
args: jobs definition start ${{ secrets.SCALEWAY_JOB_IMPORT_ID }} environment-variables.UPDATE=true environment-variables.START_DATE_UPDATE=${{ matrix.dates.start_date }} environment-variables.END_DATE=${{ matrix.dates.end_date }}