mirror of
https://git.netzspielplatz.de/docker-multiarch/prosody-filer.git
synced 2025-11-08 21:59:28 +00:00
initial ci config
This commit is contained in:
parent
d4c4179dd1
commit
1da4b005d6
1 changed files with 42 additions and 0 deletions
42
.gitlab-ci.yml
Normal file
42
.gitlab-ci.yml
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
image: docker:19.03
|
||||||
|
services:
|
||||||
|
- docker:19.03-dind
|
||||||
|
variables:
|
||||||
|
DOCKER_DRIVER: overlay
|
||||||
|
DOCKER_TLS_CERTDIR: ""
|
||||||
|
stages:
|
||||||
|
- buildx
|
||||||
|
- deploy
|
||||||
|
|
||||||
|
buildx:
|
||||||
|
image: docker:19.03-git
|
||||||
|
stage: buildx
|
||||||
|
variables:
|
||||||
|
GIT_STRATEGY: none
|
||||||
|
artifacts:
|
||||||
|
paths:
|
||||||
|
- buildx
|
||||||
|
expire_in: 1 hour
|
||||||
|
services:
|
||||||
|
- docker:19.03-dind
|
||||||
|
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:
|
||||||
|
IMAGE_TAG: $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG
|
||||||
|
script:
|
||||||
|
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
|
||||||
|
- docker buildx create --use --name mybuilder
|
||||||
|
- docker buildx build --platform linux/amd64,linux/arm64,linux/arm/v7 --push -t $CI_REGISTRY_IMAGE:latest .
|
||||||
Loading…
Add table
Add a link
Reference in a new issue