Commit c1100484 authored by Markus Frosch's avatar Markus Frosch 📣

ci: Update config and matrix

parent 39e3d539
Pipeline #7452 failed with stages
in 4 minutes and 35 seconds
stages: stages:
- build - build
- test - test
- upload
variables: variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
...@@ -11,10 +12,13 @@ variables: ...@@ -11,10 +12,13 @@ variables:
tags: tags:
- docker - docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE} image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
before_script:
- echo "machine git.icinga.com login ${ICINGA_GITLAB_USER} password ${ICINGA_GITLAB_TOKEN}" >> $HOME/.netrc
script: script:
- icinga-build-package - icinga-build-package
cache:
key: "${CI_JOB_NAME}"
paths:
- ccache/
- 'icingadb.git'
artifacts: artifacts:
paths: paths:
- build/* - build/*
...@@ -29,38 +33,111 @@ variables: ...@@ -29,38 +33,111 @@ variables:
- find build/ - find build/
- icinga-build-test - icinga-build-test
build centos 8: .upload: &upload
variables: stage: upload
DOCKER_IMAGE: centos/8:x86_64 tags:
- docker
image: ${DOCKER_IMAGE_BASE}/upload
script:
- find build/
- icinga-build-upload-aptly
only:
- master
- tags
###################################
# EPEL
###################################
build/centos/8:
<<: *build <<: *build
variables:
DOCKER_IMAGE: centos/8
test centos 8: test/centos/8:
<<: *test
variables: variables:
DOCKER_IMAGE: centos/8:x86_64 DOCKER_IMAGE: centos/8
dependencies: dependencies:
- build centos 8 - build/centos/8
<<: *test
build opensuse 15.1: upload/epel/8:
variables: <<: *upload
DOCKER_IMAGE: opensuse/15.1:x86_64 dependencies:
- build/centos/8
build/centos/7:
<<: *build <<: *build
variables:
DOCKER_IMAGE: centos/7
test opensuse 15.1: test/centos/7:
<<: *test
variables: variables:
DOCKER_IMAGE: opensuse/15.1:x86_64 DOCKER_IMAGE: centos/7
dependencies: dependencies:
- build opensuse 15.1 - build/centos/7
<<: *test
upload/epel/7:
<<: *upload
dependencies:
- build/centos/7
###################################
# Fedora
###################################
build/fedora/31:
<<: *build
variables:
DOCKER_IMAGE: fedora/31
build sles 15.1: test/fedora/31:
<<: *test
variables: variables:
DOCKER_IMAGE: sles/15.1:x86_64 DOCKER_IMAGE: fedora/31
dependencies:
- build/fedora/31
upload/fedora/31:
<<: *upload
dependencies:
- build/fedora/31
###################################
# SLES
###################################
build/sles/15.1:
<<: *build <<: *build
variables:
DOCKER_IMAGE: sles/15.1
test sles 15.1: test/sles/15.1:
<<: *test
variables: variables:
DOCKER_IMAGE: sles/15.1:x86_64 DOCKER_IMAGE: sles/15.1
dependencies: dependencies:
- build sles 15.1 - build/sles/15.1
upload/SUSE/15.1:
<<: *upload
dependencies:
- build/sles/15.1
###################################
# openSUSE
###################################
build/opensuse/15.1:
<<: *build
variables:
DOCKER_IMAGE: opensuse/15.1
test/opensuse/15.1:
<<: *test <<: *test
variables:
DOCKER_IMAGE: opensuse/15.1
dependencies:
- build/opensuse/15.1
upload/openSUSE/15.1:
<<: *upload
dependencies:
- build/opensuse/15.1
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