deemix-docker/.gitlab-ci.yml

28 lines
891 B
YAML
Raw Normal View History

2020-06-05 20:49:21 +00:00
image: docker:latest
services:
- docker:dind
stages:
- build
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:armhf .
2020-06-05 21:27:28 +00:00
- docker push $IMAGE:armhf
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
2020-06-05 21:27:28 +00:00
- docker manifest create $IMAGE $IMAGE:amd64 $IMAGE:armhf $IMAGE:arm64v8
- docker manifest annotate $IMAGE $IMAGE:armhf --os linux --arch arm
2020-06-05 20:49:21 +00:00
- docker manifest annotate $IMAGE $IMAGE:arm64v8 --os linux --arch arm64
- docker manifest push $IMAGE