Add arm capability without pushing and building images

This commit is contained in:
Andrejs Cunskis 2022-09-22 08:17:17 +00:00 committed by Balasankar 'Balu' C
parent a467eeb36d
commit 0be7ce1245
16 changed files with 51 additions and 66 deletions

View file

@ -1,6 +1,21 @@
.build_and_push:
stage: custom
needs: []
tags:
- docker
- high-cpu
variables:
QEMU_IMAGE: tonistiigi/binfmt:qemu-v6.2.0
timeout: 2 hours
before_script:
- echo "$CI_REGISTRY_PASSWORD" | docker login "$CI_REGISTRY" -u "$CI_REGISTRY_USER" --password-stdin
- |
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: