From e50b8813221748a11a0e146d9ebb62ffe4f7248e Mon Sep 17 00:00:00 2001 From: Cornelius Roemer Date: Sat, 11 May 2024 23:08:28 +0200 Subject: [PATCH] Fix for always running arm --- .github/workflows/backend.yml | 2 +- .github/workflows/config-preprocessor-build.yml | 2 +- .github/workflows/dummyPreprocessing.yml | 2 +- .github/workflows/ingest.yml | 2 +- .github/workflows/keycloakify-build.yml | 2 +- .github/workflows/preprocessing-nextclade.yml | 2 +- .github/workflows/website.yml | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 9c77342ce..6651e41bf 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -98,7 +98,7 @@ jobs: tags: ${{ steps.dockerMetadata.outputs.tags }} cache-from: type=gha,scope=backend-${{ github.ref }} cache-to: type=gha,mode=max,scope=backend-${{ github.ref }} - platforms: ${{ env.BUILD_ARM && 'linux/amd64,linux/arm64' || 'linux/amd64' }} + platforms: ${{ env.BUILD_ARM == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} - name: Retag and push existing image if cache hit if: env.CACHE_HIT == 'true' diff --git a/.github/workflows/config-preprocessor-build.yml b/.github/workflows/config-preprocessor-build.yml index 4f81380d7..48216ea39 100644 --- a/.github/workflows/config-preprocessor-build.yml +++ b/.github/workflows/config-preprocessor-build.yml @@ -67,4 +67,4 @@ jobs: tags: ${{ steps.dockerMetadata.outputs.tags }} cache-from: type=gha,scope=config-preprocessor-${{ github.ref }} cache-to: type=gha,mode=max,scope=config-preprocessor-${{ github.ref }} - platforms: ${{ env.BUILD_ARM && 'linux/amd64,linux/arm64' || 'linux/amd64' }} + platforms: ${{ env.BUILD_ARM == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} diff --git a/.github/workflows/dummyPreprocessing.yml b/.github/workflows/dummyPreprocessing.yml index f9a16d419..36b9edabf 100644 --- a/.github/workflows/dummyPreprocessing.yml +++ b/.github/workflows/dummyPreprocessing.yml @@ -80,7 +80,7 @@ jobs: tags: ${{ steps.dockerMetadata.outputs.tags }} cache-from: type=gha,scope=preprocessing-dummy-${{ github.ref }} cache-to: type=gha,mode=max,scope=preprocessing-dummy-${{ github.ref }} - platforms: ${{ env.BUILD_ARM && 'linux/amd64,linux/arm64' || 'linux/amd64' }} + platforms: ${{ env.BUILD_ARM == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} - name: Tag and push image if cache hit if: env.CACHE_HIT == 'true' diff --git a/.github/workflows/ingest.yml b/.github/workflows/ingest.yml index 3c7832b04..1745244b2 100644 --- a/.github/workflows/ingest.yml +++ b/.github/workflows/ingest.yml @@ -80,7 +80,7 @@ jobs: tags: ${{ steps.dockerMetadata.outputs.tags }} cache-from: type=gha,scope=ingest-${{ github.ref }} cache-to: type=gha,mode=max,scope=ingest-${{ github.ref }} - platforms: ${{ env.BUILD_ARM && 'linux/amd64,linux/arm64' || 'linux/amd64' }} + platforms: ${{ env.BUILD_ARM == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} - name: Retag and push existing image if cache hit if: env.CACHE_HIT == 'true' diff --git a/.github/workflows/keycloakify-build.yml b/.github/workflows/keycloakify-build.yml index c49f8eb12..b3ac61781 100644 --- a/.github/workflows/keycloakify-build.yml +++ b/.github/workflows/keycloakify-build.yml @@ -79,7 +79,7 @@ jobs: tags: ${{ steps.dockerMetadata.outputs.tags }} cache-from: type=gha,scope=keycloakify-${{ github.ref }} cache-to: type=gha,mode=max,scope=keycloakify-${{ github.ref }} - platforms: ${{ env.BUILD_ARM && 'linux/amd64,linux/arm64' || 'linux/amd64' }} + platforms: ${{ env.BUILD_ARM == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} build-args: NODE_VERSION=${{ env.NODE_VERSION }} - name: Tag and push image if cache hit if: env.CACHE_HIT == 'true' diff --git a/.github/workflows/preprocessing-nextclade.yml b/.github/workflows/preprocessing-nextclade.yml index 922c5a5b2..8d85d9a59 100644 --- a/.github/workflows/preprocessing-nextclade.yml +++ b/.github/workflows/preprocessing-nextclade.yml @@ -81,7 +81,7 @@ jobs: tags: ${{ steps.dockerMetadata.outputs.tags }} cache-from: type=gha,scope=nextclade-${{ github.ref }} cache-to: type=gha,mode=max,scope=nextclade-${{ github.ref }} - platforms: ${{ env.BUILD_ARM && 'linux/amd64,linux/arm64' || 'linux/amd64' }} + platforms: ${{ env.BUILD_ARM == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} - name: Retag and push existing image if cache hit if: env.CACHE_HIT == 'true' diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 41e158715..0a0a0216e 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -95,7 +95,7 @@ jobs: tags: ${{ steps.dockerMetadata.outputs.tags }} cache-from: type=gha,scope=website-${{ github.ref }} cache-to: type=gha,mode=max,scope=website-${{ github.ref }} - platforms: ${{ env.BUILD_ARM && 'linux/amd64,linux/arm64' || 'linux/amd64' }} + platforms: ${{ env.BUILD_ARM == 'true' == 'true' && 'linux/amd64,linux/arm64' || 'linux/amd64' }} build-args: NODE_VERSION=${{ env.NODE_VERSION }} - name: Retag and push existing image if cache hit