deemix-docker/.gitlab-ci.yml

30 lines
696 B
YAML
Raw Normal View History

2020-06-05 20:49:21 +00:00
image: docker:latest
services:
- docker:dind
stages:
- build
- post
2020-06-05 20:49:21 +00:00
variables:
IMAGE: registry.gitlab.com/bockiii/deemix-docker
DOCKER_CLI_EXPERIMENTAL: enabled
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
2020-06-05 21:45:21 +00:00
build:
2020-06-05 21:23:47 +00:00
stage: build
2020-06-05 20:49:21 +00:00
script:
2020-06-05 21:45:21 +00:00
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
- docker build --pull -f Dockerfile.arm64v8 -t $IMAGE:arm64v8 .
2020-06-05 21:45:21 +00:00
- docker push $IMAGE:arm64v8
- docker build --pull -f Dockerfile.arm32v7 -t $IMAGE:arm32v7 .
- docker push $IMAGE:arm32v7
2020-06-05 21:45:21 +00:00
- docker build --pull -t $IMAGE:amd64 .
2020-06-05 21:23:47 +00:00
- docker push $IMAGE:amd64
manifest:
stage: post
script:
- ./post-push