Set up multi-arch builds

This commit is contained in:
Salt 2021-03-20 14:20:43 -05:00
parent 89d9610ba8
commit 234992141c

View File

@ -25,9 +25,11 @@ Build:
stage: build stage: build
script: script:
- docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest || true - docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest || true
- docker buildx create --use
- > - >
docker build docker buildx build
--pull --pull
--platform linux/amd64,linux/arm64
--cache-from $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest --cache-from $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest
--tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA --tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA
. .