mirror of
https://ops.gitlab.net/gitlab-org/gitlab-build-images.git
synced 2025-12-12 11:32:56 +01:00
Add arm64 image build capability
This commit is contained in:
parent
acce4ded1b
commit
c2838c613d
14 changed files with 43 additions and 60 deletions
|
|
@ -1,6 +1,16 @@
|
|||
.build_and_push:
|
||||
stage: custom
|
||||
needs: []
|
||||
variables:
|
||||
QEMU_IMAGE: tonistiigi/binfmt:qemu-v6.2.0
|
||||
before_script:
|
||||
- |
|
||||
if [ "${ARCH:-amd64}" != "amd64" ]; then
|
||||
echo -e "\033[1;33mInstalling latest qemu emulators\033[0m"
|
||||
docker pull -q ${QEMU_IMAGE};
|
||||
docker run --rm --privileged ${QEMU_IMAGE} --uninstall qemu-*;
|
||||
docker run --rm --privileged ${QEMU_IMAGE} --install all;
|
||||
fi
|
||||
script:
|
||||
- ./scripts/lib/custom-docker-build
|
||||
rules:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue