ci: Update some docker settings
This commit is contained in:
parent
3b999ce82a
commit
8fe42115a6
1 changed files with 9 additions and 2 deletions
|
@ -21,18 +21,20 @@ variables:
|
||||||
variables:
|
variables:
|
||||||
# Docker in Docker:
|
# Docker in Docker:
|
||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
|
DOCKER_TLS_CERTDIR: "/certs"
|
||||||
image:
|
image:
|
||||||
name: docker.io/docker
|
name: docker.io/docker
|
||||||
services:
|
services:
|
||||||
- name: docker.io/docker:dind
|
- name: docker.io/docker:dind
|
||||||
alias: docker
|
alias: docker
|
||||||
script:
|
script:
|
||||||
|
- docker context create ci-context
|
||||||
- >
|
- >
|
||||||
docker buildx create
|
docker buildx create
|
||||||
--name "multi"
|
--name "multi"
|
||||||
--driver "docker-container"
|
--driver "docker-container"
|
||||||
--platform "linux/arm64,linux/arm/v7"
|
--platform "linux/arm64,linux/arm/v7,linux/amd64"
|
||||||
--use
|
--use ci-context
|
||||||
# Authorize against this project's own image registry:
|
# Authorize against this project's own image registry:
|
||||||
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
- docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
|
||||||
# Build multiplatform image and push to temporary tag:
|
# Build multiplatform image and push to temporary tag:
|
||||||
|
@ -40,6 +42,9 @@ variables:
|
||||||
docker buildx build
|
docker buildx build
|
||||||
--platform "linux/arm/v7,linux/arm64,linux/amd64"
|
--platform "linux/arm/v7,linux/arm64,linux/amd64"
|
||||||
--pull
|
--pull
|
||||||
|
--cache-from=type=registry,ref=$CI_REGISTRY_IMAGE/$TAG
|
||||||
|
--cache-from=type=registry,ref=$CI_REGISTRY_IMAGE/matrix-conduit:next
|
||||||
|
--ulimit nofile=2048
|
||||||
--tag "$CI_REGISTRY_IMAGE/temporary-ci-images:$CI_JOB_ID"
|
--tag "$CI_REGISTRY_IMAGE/temporary-ci-images:$CI_JOB_ID"
|
||||||
--push
|
--push
|
||||||
--provenance=false
|
--provenance=false
|
||||||
|
@ -48,6 +53,7 @@ variables:
|
||||||
- >
|
- >
|
||||||
docker buildx build
|
docker buildx build
|
||||||
--platform "linux/arm/v7,linux/arm64,linux/amd64"
|
--platform "linux/arm/v7,linux/arm64,linux/amd64"
|
||||||
|
--ulimit nofile=2048
|
||||||
--target "packager-result"
|
--target "packager-result"
|
||||||
--output="type=local,dest=/tmp/build-output"
|
--output="type=local,dest=/tmp/build-output"
|
||||||
--provenance=false
|
--provenance=false
|
||||||
|
@ -56,6 +62,7 @@ variables:
|
||||||
- >
|
- >
|
||||||
docker buildx build
|
docker buildx build
|
||||||
--platform "linux/arm/v7,linux/arm64,linux/amd64"
|
--platform "linux/arm/v7,linux/arm64,linux/amd64"
|
||||||
|
--ulimit nofile=2048
|
||||||
--target "builder-result"
|
--target "builder-result"
|
||||||
--output="type=local,dest=/tmp/build-output"
|
--output="type=local,dest=/tmp/build-output"
|
||||||
--provenance=false
|
--provenance=false
|
||||||
|
|
Loading…
Add table
Reference in a new issue