From b6be3d918848b142b7c9ec716ec91ad2815bed85 Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sat, 11 May 2024 15:59:11 +0200 Subject: [PATCH] Make a single launcher workflow to launch all arm builds --- .github/workflows/backend.yml | 7 +++ .github/workflows/build-arm.yaml | 46 +++++++++++++++++++ .../workflows/config-preprocessor-build.yml | 7 +++ .github/workflows/dummyPreprocessing.yml | 8 ++++ .github/workflows/ingest.yml | 7 +++ .github/workflows/keycloakify-build.yml | 8 +++- .github/workflows/preprocessing-nextclade.yml | 7 +++ .github/workflows/website.yml | 8 +++- 8 files changed, 96 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/build-arm.yaml diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index b83c7fa3de..13df105d3f 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -9,6 +9,13 @@ on: description: "Build for ARM as well" default: false required: false + workflow_call: + inputs: + build_arm: + type: boolean + description: "Build for ARM as well" + default: false + required: false env: DOCKER_IMAGE_NAME: ghcr.io/loculus-project/backend diff --git a/.github/workflows/build-arm.yaml b/.github/workflows/build-arm.yaml new file mode 100644 index 0000000000..ee56a84d15 --- /dev/null +++ b/.github/workflows/build-arm.yaml @@ -0,0 +1,46 @@ +# Trigger a build of all docker images including ARM images + +on: + workflow_dispatch: + inputs: + build_arm: + type: boolean + description: "Build for ARM as well" + default: true + required: false + +jobs: + trigger-backend: + uses: ./.github/workflows/backend.yml + with: + build_arm: ${{ github.event.inputs.build_arm }} + + trigger-config-preprocessor: + uses: ./.github/workflows/config-preprocessor-build.yml + with: + build_arm: ${{ github.event.inputs.build_arm }} + + trigger-dummy-preprocessing: + uses: ./.github/workflows/dummyPreprocessing.yml + with: + build_arm: ${{ github.event.inputs.build_arm }} + + trigger-ingest: + uses: ./.github/workflows/ingest.yml + with: + build_arm: ${{ github.event.inputs.build_arm }} + + trigger-keycloakify: + uses: ./.github/workflows/keycloakify-build.yml + with: + build_arm: ${{ github.event.inputs.build_arm }} + + trigger-preprocessing-nextclade: + uses: ./.github/workflows/preprocessing-nextclade.yml + with: + build_arm: ${{ github.event.inputs.build_arm }} + + trigger-website: + uses: ./.github/workflows/website.yml + with: + build_arm: ${{ github.event.inputs.build_arm }} diff --git a/.github/workflows/config-preprocessor-build.yml b/.github/workflows/config-preprocessor-build.yml index 5c057a591a..e230a1376e 100644 --- a/.github/workflows/config-preprocessor-build.yml +++ b/.github/workflows/config-preprocessor-build.yml @@ -9,6 +9,13 @@ on: description: "Build for ARM as well" default: false required: false + workflow_call: + inputs: + build_arm: + type: boolean + description: "Build for ARM as well" + default: false + required: false env: DOCKER_IMAGE_NAME: ghcr.io/loculus-project/config-processor diff --git a/.github/workflows/dummyPreprocessing.yml b/.github/workflows/dummyPreprocessing.yml index b8f311142f..b3847be14d 100644 --- a/.github/workflows/dummyPreprocessing.yml +++ b/.github/workflows/dummyPreprocessing.yml @@ -9,6 +9,14 @@ on: description: "Build for ARM as well" default: false required: false + workflow_call: + inputs: + build_arm: + type: boolean + description: "Build for ARM as well" + default: false + required: false + env: DOCKER_IMAGE_NAME: ghcr.io/loculus-project/preprocessing-dummy diff --git a/.github/workflows/ingest.yml b/.github/workflows/ingest.yml index 5dd0526fd5..260ecd4d62 100644 --- a/.github/workflows/ingest.yml +++ b/.github/workflows/ingest.yml @@ -8,6 +8,13 @@ on: description: "Build for ARM as well" default: false required: false + workflow_call: + inputs: + build_arm: + type: boolean + description: "Build for ARM as well" + default: false + required: false env: DOCKER_IMAGE_NAME: ghcr.io/loculus-project/ingest diff --git a/.github/workflows/keycloakify-build.yml b/.github/workflows/keycloakify-build.yml index fec94f3875..d66a97beda 100644 --- a/.github/workflows/keycloakify-build.yml +++ b/.github/workflows/keycloakify-build.yml @@ -9,7 +9,13 @@ on: description: "Build for ARM as well" default: false required: false - + workflow_call: + inputs: + build_arm: + type: boolean + description: "Build for ARM as well" + default: false + required: false env: DOCKER_IMAGE_NAME: ghcr.io/loculus-project/keycloakify BUILD_ARM: "true" diff --git a/.github/workflows/preprocessing-nextclade.yml b/.github/workflows/preprocessing-nextclade.yml index 43e5f43678..e3ab6b3a3b 100644 --- a/.github/workflows/preprocessing-nextclade.yml +++ b/.github/workflows/preprocessing-nextclade.yml @@ -9,6 +9,13 @@ on: description: "Build for ARM as well" default: false required: false + workflow_call: + inputs: + build_arm: + type: boolean + description: "Build for ARM as well" + default: false + required: false env: DOCKER_IMAGE_NAME: ghcr.io/loculus-project/preprocessing-nextclade diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 12e09089c6..0a0cd8712e 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -9,7 +9,13 @@ on: description: "Build for ARM as well" default: false required: false - + workflow_call: + inputs: + build_arm: + type: boolean + description: "Build for ARM as well" + default: false + required: false env: DOCKER_IMAGE_NAME: ghcr.io/loculus-project/website BUILD_ARM: "true"