54 lines
924 B
YAML
54 lines
924 B
YAML
image: docker:latest
|
|
|
|
services:
|
|
- docker:dind
|
|
|
|
variables:
|
|
DOCKER_HOST: tcp://docker:2375/
|
|
DOCKER_DRIVER: overlay
|
|
DOCKER_TLS_CERTDIR: ""
|
|
|
|
stages:
|
|
- build
|
|
- mirror
|
|
|
|
before_script:
|
|
- echo ${CI_BUILD_TOKEN} | docker login -u gitlab-ci-token --password-stdin ${CI_REGISTRY}
|
|
|
|
rpi-builder:
|
|
stage: build
|
|
tags:
|
|
- arm
|
|
script: ARCHS="rpi:raspberry-pi" ./build.sh
|
|
|
|
armv7hf-builder:
|
|
stage: build
|
|
tags:
|
|
- arm
|
|
script: ARCHS="armv7hf:raspberry-pi2,raspberrypi3" ./build.sh
|
|
|
|
aarch64-builder:
|
|
stage: build
|
|
tags:
|
|
- arm
|
|
script: ARCHS="aarch64:raspberrypi3-64,raspberrypi4-64" ./build.sh
|
|
|
|
i386-builder:
|
|
stage: build
|
|
tags:
|
|
- x86
|
|
script: ARCHS="i386" ./build.sh
|
|
|
|
arm64-builder:
|
|
stage: build
|
|
tags:
|
|
- x86
|
|
script: ARCHS="amd64" ./build.sh
|
|
|
|
mirror:
|
|
stage: mirror
|
|
script:
|
|
- echo ${DOCKERHUB_TOKEN} | docker login -u jimsynz --password-stdin
|
|
- ./mirror.sh
|
|
only:
|
|
- master
|