mirror of
https://gitlab.com/Bockiii/deemix-docker.git
synced 2024-08-30 17:32:18 +00:00
arch testing
This commit is contained in:
parent
46dceac3bc
commit
30c4951db7
@ -3,8 +3,8 @@ services:
|
|||||||
- docker:dind
|
- docker:dind
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
- prebuild
|
|
||||||
- build
|
- build
|
||||||
|
- post
|
||||||
|
|
||||||
variables:
|
variables:
|
||||||
IMAGE: registry.gitlab.com/bockiii/deemix-docker
|
IMAGE: registry.gitlab.com/bockiii/deemix-docker
|
||||||
@ -16,20 +16,29 @@ variables:
|
|||||||
before_script:
|
before_script:
|
||||||
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN $CI_REGISTRY
|
||||||
|
|
||||||
setup_qemu:
|
build_arm64:
|
||||||
stage: prebuild
|
stage: build
|
||||||
|
tags: arm64
|
||||||
script:
|
script:
|
||||||
- docker run --rm --privileged multiarch/qemu-user-static:register --reset
|
- docker build --build-arg IMAGE_ARCH=$ARCH_ARM64 --pull -t $IMAGE:arm64v8 .
|
||||||
|
- docker push $IMAGE:arm64v8
|
||||||
|
|
||||||
build:
|
build_arm32v7:
|
||||||
|
stage: build
|
||||||
|
tags: arm
|
||||||
|
script:
|
||||||
|
- docker build --build-arg IMAGE_ARCH=$ARCH_ARM32 --pull -t $IMAGE:arm32v7 .
|
||||||
|
- docker push $IMAGE:arm32v7
|
||||||
|
|
||||||
|
build_amd64:
|
||||||
stage: build
|
stage: build
|
||||||
script:
|
script:
|
||||||
- docker build --build-arg IMAGE_ARCH=$ARCH_AMD --pull -t $IMAGE:amd64 .
|
- docker build --build-arg IMAGE_ARCH=$ARCH_AMD --pull -t $IMAGE:amd64 .
|
||||||
- docker push $IMAGE:amd64
|
- docker push $IMAGE:amd64
|
||||||
- docker build --build-arg IMAGE_ARCH=$ARCH_ARM32 --pull -t $IMAGE:arm32v7 .
|
|
||||||
- docker push $IMAGE:arm32v7
|
annotate:
|
||||||
- docker build --build-arg IMAGE_ARCH=$ARCH_ARM64 --pull -t $IMAGE:arm64v8 .
|
stage: post
|
||||||
- docker push $IMAGE:arm64v8
|
script:
|
||||||
- docker manifest create $IMAGE $IMAGE:amd64 $IMAGE:arm32v7 $IMAGE:arm64v8
|
- docker manifest create $IMAGE $IMAGE:amd64 $IMAGE:arm32v7 $IMAGE:arm64v8
|
||||||
- docker manifest annotate $IMAGE $IMAGE:arm32v7 --os linux --arch arm
|
- docker manifest annotate $IMAGE $IMAGE:arm32v7 --os linux --arch arm
|
||||||
- docker manifest annotate $IMAGE $IMAGE:arm64v8 --os linux --arch arm64
|
- docker manifest annotate $IMAGE $IMAGE:arm64v8 --os linux --arch arm64
|
||||||
|
Loading…
Reference in New Issue
Block a user