Skip to content

Commit

Permalink
Update .gitlab-ci.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
alanpeng authored Apr 5, 2021
1 parent 357f9dd commit 2ad6dcd
Showing 1 changed file with 12 additions and 8 deletions.
20 changes: 12 additions & 8 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
include:
- project: 'alanpeng/kubeadm-version'
file: '/gitlab-ci-template.yml'

variables:
# remove comment (or set variable in Settings) to build with BUILDX
#CI_BUILDX_ARCHS: "linux/arm64"
CI_BUILD_ARM64: "enabled"
build_image:
image: docker:git
services:
- docker:dind
before_script:
- docker run --privileged linuxkit/binfmt:v0.8
- docker run -d --privileged -p 1234:1234 --name buildkit moby/buildkit:latest --addr tcp://0.0.0.0:1234 --oci-worker-platform linux/amd64 --oci-worker-platform linux/arm64
- docker cp buildkit:/usr/bin/buildctl /usr/bin/
- export BUILDKIT_HOST=tcp://0.0.0.0:1234
script:
- sh build-images.sh
when: always

0 comments on commit 2ad6dcd

Please sign in to comment.