gitlab-ci-multiplatform
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
gitlab-ci-multiplatform [2021/01/08 07:57] – [Create buildx image to use] baumi | gitlab-ci-multiplatform [2025/09/11 09:43] (current) – removed baumi | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Gitlab CI MultiPlatform Build ====== | ||
- | |||
- | ===== Enable Emulators ===== | ||
- | < | ||
- | # docker run -it --rm --privileged tonistiigi/ | ||
- | { | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ], | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | " | ||
- | ] | ||
- | } | ||
- | </ | ||
- | |||
- | ===== Create buildx image to use ===== | ||
- | <file Dockerfile> | ||
- | 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 / | ||
- | " | ||
- | |||
- | RUN chmod a+x / | ||
- | |||
- | ARG DOCKER_VERSION | ||
- | FROM docker: | ||
- | |||
- | COPY --from=fetcher / | ||
- | |||
- | </ | ||
- | ===== Configure gitlab-runner ===== | ||
- | |||
- | ===== Utilize own buildx image and switch to buildx in .gitlab-ci.yml ===== | ||
- | |||
- | |||
gitlab-ci-multiplatform.1610089043.txt.gz · Last modified: by baumi