Add build for arm64v8

This commit is contained in:
Simon PERA 2022-10-25 19:08:27 +02:00
parent 5b4c0d2540
commit c524804c63
1 changed files with 3 additions and 3 deletions

View File

@ -50,7 +50,8 @@ release-docker:
- web
script:
- docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD"
- docker build -t send .
- docker buildx create --name sendBuilder
- docker buildx use sendBuilder
- |
if [ "$CI_PIPELINE_SOURCE" == "merge_request_event" ]; then
IMAGE_NAMES="$CI_REGISTRY_IMAGE/mr:$CI_MERGE_REQUEST_IID"
@ -61,8 +62,7 @@ release-docker:
fi
- |
for image in $IMAGE_NAMES; do
docker tag send $image
docker push $image
docker buildx build --platform linux/amd64,linux/arm64 -t $image . --push
done
- |
echo "Container image pushed. You can pull it with";