Skip to content

Commit

Permalink
Build for arm64 (#468)
Browse files Browse the repository at this point in the history
* Build for arm64

* adding suggestion from PR

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>

---------

Co-authored-by: Agnès Toulet <35176601+AgnesToulet@users.noreply.github.com>
  • Loading branch information
michbeck100 and AgnesToulet authored Oct 5, 2023
1 parent 97614fd commit 2764e6b
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions scripts/build_push_docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,11 @@ else
fi

echo "building ${TAG}"
docker build -t ${IMAGE_NAME}:${TAG} .

echo "$DOCKER_PASS" | docker login -u "$DOCKER_USER" --password-stdin
docker push ${IMAGE_NAME}:${TAG}

tags=()
tags+=${IMAGE_NAME}:${TAG}
if [ -z "$(echo $TAG | grep -E "beta|master")" ]; then
docker tag ${IMAGE_NAME}:${TAG} ${IMAGE_NAME}:latest
docker push ${IMAGE_NAME}:latest
tags+={IMAGE_NAME}:latest
fi

docker buildx build --platform linux/amd64,linux/arm64 --push -t ${tags[@]} .

0 comments on commit 2764e6b

Please sign in to comment.