diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 71b8288..48e73e8 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 build_ubuntu_bionic_dev: + image: kasmweb/docker-buildx-private:develop stage: build + variables: + BUILD_PLATFORMS: "linux/amd64,linux/arm64" 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 . - - docker push ${ORG_NAME}/core-ubuntu-bionic-private:$SANITIZED_BRANCH + # get qemu ready + - 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: - develop - /^release\/.*$/ + tags: + - aws-autoscale build_cuda_bionic_dev: