Skip to content

Commit 1e63ccb

Browse files
committed
Build docker images for linux/arm64
1 parent 9576f8e commit 1e63ccb

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.circleci/config.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,12 @@ jobs:
8585
- checkout
8686
- setup_remote_docker
8787
- run: |
88+
docker buildx create \
89+
--name container-builder \
90+
--driver docker-container \
91+
--bootstrap --use
8892
for cmd in << pipeline.parameters.cmds >>; do
89-
docker build --build-arg cmd=${cmd} -f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:latest .
93+
docker buildx build --platform linux/amd64,linux/arm64 --build-arg cmd=${cmd} -f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:latest .
9094
done
9195
9296
publish_docker:
@@ -101,7 +105,7 @@ jobs:
101105
TAG=${CIRCLE_TAG:1}
102106
TAG=${TAG:-latest}
103107
for cmd in << pipeline.parameters.cmds >>; do
104-
docker build --build-arg cmd=${cmd} -f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:${TAG} .
108+
docker buildx build --platform linux/amd64,linux/arm64 --build-arg cmd=${cmd} -f ./cmd/${cmd}/Dockerfile -t robocupssl/${cmd}:${TAG} .
105109
docker login -u "${DOCKER_HUB_USERNAME}" -p "${DOCKER_HUB_PASSWORD}"
106110
docker push robocupssl/${cmd}:${TAG}
107111
done

0 commit comments

Comments
 (0)