From 234992141c94fb6a059b423a544d0b4aecd80e0f Mon Sep 17 00:00:00 2001 From: Salt Date: Sat, 20 Mar 2021 14:20:43 -0500 Subject: [PATCH] Set up multi-arch builds --- .gitlab-ci.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4c97ed2..7200e34 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -25,9 +25,11 @@ Build: stage: build script: - docker pull $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest || true + - docker buildx create --use - > - docker build + docker buildx build --pull + --platform linux/amd64,linux/arm64 --cache-from $CI_HUB_USERNAME/$CI_PROJECT_NAME:latest --tag $CI_HUB_USERNAME/$CI_PROJECT_NAME:$CI_COMMIT_SHORT_SHA .