User Tools

Site Tools


gitlab-ci-multiplatform

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
gitlab-ci-multiplatform [2021/01/08 07:56] – created baumigitlab-ci-multiplatform [2025/09/11 09:43] (current) – removed baumi
Line 1: Line 1:
-====== Gitlab CI MultiPlatform Build ====== 
- 
-===== Enable Emulators ===== 
-<code> 
-# docker run -it --rm --privileged tonistiigi/binfmt --install all 
-{ 
-  "supported": [ 
-    "linux/amd64", 
-    "linux/arm64", 
-    "linux/riscv64", 
-    "linux/ppc64le", 
-    "linux/s390x", 
-    "linux/386", 
-    "linux/arm/v7", 
-    "linux/arm/v6" 
-  ], 
-  "emulators": [ 
-    "qemu-aarch64", 
-    "qemu-arm", 
-    "qemu-ppc64le", 
-    "qemu-riscv64", 
-    "qemu-s390x" 
-  ] 
-} 
-</code> 
- 
-===== Create buildx image to use ===== 
-<code> 
-ARG BUILDX_VERSION=0.4.2 
-ARG DOCKER_VERSION=latest 
- 
-FROM alpine AS fetcher 
- 
-RUN apk add curl 
- 
-ARG BUILDX_VERSION 
-RUN curl -L \ 
-  --output /docker-buildx \ 
-  "https://github.com/docker/buildx/releases/download/v${BUILDX_VERSION}/buildx-v${BUILDX_VERSION}.linux-amd64" 
- 
-RUN chmod a+x /docker-buildx 
- 
-ARG DOCKER_VERSION 
-FROM docker:${DOCKER_VERSION} 
- 
-COPY --from=fetcher /docker-buildx /usr/lib/docker/cli-plugins/docker-buildx 
- 
-</code> 
-===== Configure gitlab-runner ===== 
- 
-===== Utilize own buildx image and switch to buildx in .gitlab-ci.yml ===== 
- 
- 
  
gitlab-ci-multiplatform.1610088967.txt.gz · Last modified: by baumi

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki