Skip to content

Commit 2764e6b

Browse files
Build for arm64 (#468)
* Build for arm64 * adding suggestion from PR Co-authored-by: Agnès Toulet <[email protected]> --------- Co-authored-by: Agnès Toulet <[email protected]>
1 parent 97614fd commit 2764e6b

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

scripts/build_push_docker.sh

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,11 @@ else
1111
fi
1212

1313
echo "building ${TAG}"
14-
docker build -t ${IMAGE_NAME}:${TAG} .
15-
1614
echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
17-
docker push ${IMAGE_NAME}:${TAG}
18-
15+
tags=()
16+
tags+=${IMAGE_NAME}:${TAG}
1917
if [ -z "$(echo $TAG | grep -E "beta|master")" ]; then
20-
docker tag ${IMAGE_NAME}:${TAG} ${IMAGE_NAME}:latest
21-
docker push ${IMAGE_NAME}:latest
18+
tags+={IMAGE_NAME}:latest
2219
fi
20+
21+
docker buildx build --platform linux/amd64,linux/arm64 --push -t ${tags[@]} .

0 commit comments

Comments
 (0)