Commit 905baa1c authored by Markus Frosch's avatar Markus Frosch 📣

ci: Update config and matrix

parent 71271165
Pipeline #7454 passed with stages
in 2 minutes and 58 seconds
stages:
- build
- test
# - upload
- upload
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
......@@ -12,10 +12,13 @@ variables:
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
before_script:
- echo "machine git.icinga.com login ${ICINGA_GITLAB_USER} password ${ICINGA_GITLAB_TOKEN}" >> $HOME/.netrc
script:
- icinga-build-package
cache:
key: "${CI_JOB_NAME}"
paths:
- ccache/
- 'icingaweb2.git'
artifacts:
paths:
- build/*
......@@ -30,52 +33,54 @@ variables:
- find build/
- icinga-build-test
# .upload: &upload
# stage: upload
# tags:
# - docker
# image: ${DOCKER_IMAGE_BASE}/upload
# script:
# - icinga-build-upload-aptly --result build/ --target $UPLOAD_TARGET --release $UPLOAD_RELEASE --insecure
# only:
# - tags
.upload: &upload
stage: upload
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/upload
script:
- find build/
- icinga-build-upload-aptly
only:
- master
- tags
build debian buster:
variables:
DOCKER_IMAGE: debian/buster:x86_64
###################################
# Debian
###################################
build/debian/buster:
<<: *build
variables:
DOCKER_IMAGE: debian/buster
test debian buster:
test/debian/buster:
<<: *test
variables:
DOCKER_IMAGE: debian/buster:x86_64
DOCKER_IMAGE: debian/buster
dependencies:
- build debian buster
<<: *test
- build/debian/buster
# upload debian buster:
# variables:
# UPLOAD_TARGET: stack/debian
# UPLOAD_RELEASE: icinga-buster
# dependencies:
# - build debian buster
# <<: *upload
upload/debian/buster:
<<: *upload
dependencies:
- build/debian/buster
build ubuntu bionic:
variables:
DOCKER_IMAGE: ubuntu/bionic:x86_64
###################################
# Ubuntu
###################################
build/ubuntu/bionic:
<<: *build
variables:
DOCKER_IMAGE: ubuntu/bionic
test ubuntu bionic:
test/ubuntu/bionic:
<<: *test
variables:
DOCKER_IMAGE: ubuntu/bionic:x86_64
DOCKER_IMAGE: ubuntu/bionic
dependencies:
- build ubuntu bionic
<<: *test
- build/ubuntu/bionic
# upload ubuntu bionic:
# variables:
# UPLOAD_TARGET: stack/ubuntu
# UPLOAD_RELEASE: icinga-bionic
# dependencies:
# - build ubuntu bionic
# <<: *upload
upload/ubuntu/bionic:
<<: *upload
dependencies:
- build/ubuntu/bionic
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