From c4fd4b907bc6b4780cf04dce4b8cd8d586d95188 Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Wed, 15 Jan 2025 10:23:35 -0500 Subject: [PATCH] chore(docker): Declare linux/amd64 platform during build --- .circleci/config.yml | 2 ++ .github/workflows/docker.yml | 1 + 2 files changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index bc2689be..177b5fd4 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -142,6 +142,7 @@ jobs: docker build --rm \ --cache-from=nipreps/fmriprep \ -t nipreps/fmriprep:latest \ + --platform linux/amd64 \ --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg VCS_REF=`git rev-parse --short HEAD` \ --build-arg VERSION="$THISVERSION" . @@ -189,6 +190,7 @@ jobs: --cache-from localhost:5000/fmriprep \ --cache-from nipreps/fmriprep:latest \ -t nipreps/fmriprep:latest \ + --platform linux/amd64 \ --build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \ --build-arg VCS_REF=`git rev-parse --short HEAD` \ --build-arg VERSION="${CIRCLE_TAG:-$THISVERSION}" . diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 5a4b32ff..3f2e0ed8 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -54,6 +54,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: linux/amd64 cache-from: | type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:master type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TARGET_BRANCH }}