mirror of
https://git.netzspielplatz.de/docker-multiarch/prosody.git
synced 2025-11-08 20:29:27 +00:00
new single-stage multiarch ci
This commit is contained in:
parent
988cd03b37
commit
b3e399e93c
1 changed files with 9 additions and 32 deletions
|
|
@ -1,39 +1,16 @@
|
||||||
image: docker:19.03
|
image: registry.gitlab.tictex.eu/docker/docker-with-buildx-git:latest
|
||||||
services:
|
|
||||||
- docker:19.03-dind
|
|
||||||
variables:
|
variables:
|
||||||
DOCKER_DRIVER: overlay
|
DOCKER_HOST: tcp://docker:2375/
|
||||||
|
DOCKER_DRIVER: overlay2
|
||||||
DOCKER_TLS_CERTDIR: ""
|
DOCKER_TLS_CERTDIR: ""
|
||||||
stages:
|
|
||||||
- buildx
|
|
||||||
- deploy
|
|
||||||
|
|
||||||
buildx:
|
services:
|
||||||
image: docker:19.03-git
|
- docker:dind
|
||||||
stage: buildx
|
|
||||||
variables:
|
build:
|
||||||
GIT_STRATEGY: none
|
stage: build
|
||||||
artifacts:
|
|
||||||
paths:
|
|
||||||
- buildx
|
|
||||||
expire_in: 1 hour
|
|
||||||
services:
|
|
||||||
- docker:19.03-dind
|
|
||||||
script:
|
script:
|
||||||
- export DOCKER_BUILDKIT=1
|
|
||||||
- git clone git://github.com/docker/buildx ./docker-buildx
|
|
||||||
- docker build --platform=local -o . ./docker-buildx
|
|
||||||
|
|
||||||
deploy:
|
|
||||||
image: docker:19.03
|
|
||||||
stage: deploy
|
|
||||||
services:
|
|
||||||
- name: docker:19.03-dind
|
|
||||||
command: ["--experimental"]
|
|
||||||
before_script:
|
|
||||||
- mkdir -p ~/.docker/cli-plugins
|
|
||||||
- mv buildx ~/.docker/cli-plugins/docker-buildx
|
|
||||||
- docker run --rm --privileged multiarch/qemu-user-static --reset -p yes
|
|
||||||
variables:
|
variables:
|
||||||
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
script:
|
script:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue