Commit 0e1941fd authored by Olav Morken's avatar Olav Morken
Browse files

GitLab CI: Use `matrix` to build for multiple distros

Instead of repeating the job for multiple distros, we can use the new
`matrix` functionality to instantiate the job multiple times.

Here we use this to build the package for all supported distributions.
parent fcf15d7e
......@@ -2,19 +2,14 @@ stages:
- build
- deploy
build-debian-bullseye:
build:
stage: build
image: debian:bullseye
artifacts:
expire_in: 1h
paths:
- output
script:
- ./build.sh
build-debian-buster:
stage: build
image: debian:buster
parallel:
matrix:
- IMAGE:
- 'debian:buster' # Debian 10 (buster)
- 'debian:bullseye' # Debian 11 (bullseye)
image: $IMAGE
artifacts:
expire_in: 1h
paths:
......
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