Commit eeaaf87b authored by Ben Gamari's avatar Ben Gamari 🐢

Break it up into multiple jobs

parent 1df43d42
......@@ -11,18 +11,55 @@ variables:
before_script:
- docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.gitlab.haskell.org
build:
.build:
stage: build
tags:
- docker
script:
- |
for dir in $(ls -d */)
do
CONTAINER_IMAGE="$CONTAINER_IMAGE_BASE/${dir::-1}"
docker pull $CONTAINER_IMAGE:latest || true
docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:latest linters/
docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA
docker push $CONTAINER_IMAGE:latest
done
CONTAINER_IMAGE="$CONTAINER_IMAGE_BASE/$IMAGE
docker pull $CONTAINER_IMAGE:latest || true
docker build --cache-from $CONTAINER_IMAGE:latest --tag $CONTAINER_IMAGE:$CI_COMMIT_SHA --tag $CONTAINER_IMAGE:latest linters/
docker push $CONTAINER_IMAGE:$CI_COMMIT_SHA
docker push $CONTAINER_IMAGE:latest
build-aarch64-linux-deb9:
extends: .build
variables:
IMAGE: aarch64-linux-deb9
build-i386-linux-deb8:
extends: .build
variables:
IMAGE: i386-linux-deb8
build-i386-linux-deb9:
extends: .build
variables:
IMAGE: i386-linux-deb9
build-x86_64-freebsd:
extends: .build
variables:
IMAGE: x86_64-freebsd
build-x86_64-linux-centos7:
extends: .build
variables:
IMAGE: x86_64-linux-centos7
build-x86_64-linux-deb8:
extends: .build
variables:
IMAGE: x86_64-linux-deb8
build-x86_64-linux-deb9:
extends: .build
variables:
IMAGE: x86_64-linux-deb9
build-x86_64-linux-fedora27:
extends: .build
variables:
IMAGE: x86_64-linux-fedora27
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment