This repository has been archived on 2024-02-13. You can view files and clone it, but cannot push or open issues or pull requests.
balena-elixir/.gitlab-ci.yml

67 lines
1.2 KiB
YAML
Raw Normal View History

2019-11-30 08:37:46 +13:00
image: docker:latest
services:
- docker:dind
variables:
2020-01-11 17:51:41 +13:00
DOCKER_HOST: tcp://docker:2375/
DOCKER_DRIVER: overlay
DOCKER_TLS_CERTDIR: ""
2019-11-30 08:37:46 +13:00
stages:
- build
- mirror
2019-11-30 08:37:46 +13:00
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
2019-11-30 08:37:46 +13:00
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
2020-05-19 15:57:58 +12:00
amd64-builder:
stage: build
tags:
- x86
script: ARCHS="amd64" ./build.sh
arm-mirror:
stage: mirror
tags:
- arm
script:
- echo ${DOCKERHUB_TOKEN} | docker login -u jimsynz --password-stdin
- ARCHS="rpi:raspberry-pi armv7hf:raspberry-pi2,raspberrypi3 aarch64:raspberrypi3-64,raspberrypi4-64" ./mirror.sh
only:
- master
x86-mirror:
stage: mirror
tags:
- x86
script:
- echo ${DOCKERHUB_TOKEN} | docker login -u jimsynz --password-stdin
2020-05-19 15:57:58 +12:00
- ARCHS="i386 amd64" ./mirror.sh
only:
- master