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 }}