Skip to content

Commit c4fd4b9

Browse files
committed
chore(docker): Declare linux/amd64 platform during build
1 parent 08a5126 commit c4fd4b9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.circleci/config.yml

+2
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ jobs:
142142
docker build --rm \
143143
--cache-from=nipreps/fmriprep \
144144
-t nipreps/fmriprep:latest \
145+
--platform linux/amd64 \
145146
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
146147
--build-arg VCS_REF=`git rev-parse --short HEAD` \
147148
--build-arg VERSION="$THISVERSION" .
@@ -189,6 +190,7 @@ jobs:
189190
--cache-from localhost:5000/fmriprep \
190191
--cache-from nipreps/fmriprep:latest \
191192
-t nipreps/fmriprep:latest \
193+
--platform linux/amd64 \
192194
--build-arg BUILD_DATE=`date -u +"%Y-%m-%dT%H:%M:%SZ"` \
193195
--build-arg VCS_REF=`git rev-parse --short HEAD` \
194196
--build-arg VERSION="${CIRCLE_TAG:-$THISVERSION}" .

.github/workflows/docker.yml

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ jobs:
5454
push: ${{ github.event_name != 'pull_request' }}
5555
tags: ${{ steps.meta.outputs.tags }}
5656
labels: ${{ steps.meta.outputs.labels }}
57+
platforms: linux/amd64
5758
cache-from: |
5859
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:master
5960
type=registry,ref=${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.TARGET_BRANCH }}

0 commit comments

Comments
 (0)