KASM-2016 multi-arch pipeline

This commit is contained in:
Matthew McClaskey 2021-10-25 15:56:14 +00:00
parent 6d6938499f
commit e2a8ff013d

View File

@ -87,13 +87,22 @@ build_centos:
# These jobs should run on the feature/bugfix branches - anything that is not the develop or release branches. It should only push images to the private repos # These jobs should run on the feature/bugfix branches - anything that is not the develop or release branches. It should only push images to the private repos
build_ubuntu_bionic_dev: build_ubuntu_bionic_dev:
image: kasmweb/docker-buildx-private:develop
stage: build stage: build
variables:
BUILD_PLATFORMS: "linux/amd64,linux/arm64"
script: script:
- docker build -t ${ORG_NAME}/core-ubuntu-bionic-private:$SANITIZED_BRANCH --build-arg BASE_IMAGE="ubuntu:18.04" --build-arg BG_IMG=bg_bionic.png -f dockerfile-kasm-core . # get qemu ready
- docker push ${ORG_NAME}/core-ubuntu-bionic-private:$SANITIZED_BRANCH - docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
# prep the buildx env
- docker buildx create --use
# build for multiple architectures
- docker buildx build --push --platform $BUILD_PLATFORMS -t ${ORG_NAME}/core-ubuntu-bionic-private:$SANITIZED_BRANCH --build-arg BASE_IMAGE="ubuntu:18.04" --build-arg BG_IMG=bg_bionic.png -f dockerfile-kasm-core .
except: except:
- develop - develop
- /^release\/.*$/ - /^release\/.*$/
tags:
- aws-autoscale
build_cuda_bionic_dev: build_cuda_bionic_dev: