Skip to content

Commit

Permalink
chore(docker): Declare linux/amd64 platform during build (#3422)
Browse files Browse the repository at this point in the history
Closes #3397.
  • Loading branch information
effigies authored Jan 15, 2025
2 parents 08a5126 + c4fd4b9 commit 64e27fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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" .
Expand Down Expand Up @@ -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}" .
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 64e27fb

Please sign in to comment.