Commit bd4ee7d8 authored by Markus Frosch's avatar Markus Frosch
Browse files

ci: Rebuild matrix for multi arch builds

parent ad0e26de
stages: stages:
- build - source
- binary
- test - test
- upload - upload
...@@ -8,23 +9,38 @@ variables: ...@@ -8,23 +9,38 @@ variables:
ICINGA_BUILD_TYPE: snapshot ICINGA_BUILD_TYPE: snapshot
#ICINGA_BUILD_UPSTREAM_BRANCH: #ICINGA_BUILD_UPSTREAM_BRANCH:
.build: &build .source: &source
stage: build stage: source
tags: tags:
- docker - docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE} image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script: script:
- icinga-build-package - icinga-build-deb-source
cache: cache:
key: "${CI_JOB_NAME}" key: "${CI_JOB_NAME}"
paths: paths:
- ccache/
- 'icinga2.git' - 'icinga2.git'
artifacts: artifacts:
paths: paths:
- build/* - build/*
expire_in: 1 week expire_in: 1 week
.binary: &binary
stage: binary
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- icinga-build-deb-binary
cache:
key: "${CI_JOB_NAME}"
paths:
- ccache/
artifacts:
paths:
- build/*
expire_in: 1 week
.test: &test .test: &test
stage: test stage: test
tags: tags:
...@@ -49,166 +65,217 @@ variables: ...@@ -49,166 +65,217 @@ variables:
################################### ###################################
# Debian # Debian
################################### ###################################
build/debian/buster:
<<: *build # buster
debian/buster:
<<: *source
variables:
DOCKER_IMAGE: debian/buster
debian/buster:x86_64:
<<: *binary
variables: variables:
DOCKER_IMAGE: debian/buster DOCKER_IMAGE: debian/buster
dependencies:
- debian/buster
test/debian/buster: test/debian/buster:x86_64:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: debian/buster DOCKER_IMAGE: debian/buster
dependencies: dependencies:
- build/debian/buster - debian/buster
build/debian/buster:x86: debian/buster:x86:
<<: *build <<: *binary
variables: variables:
DOCKER_IMAGE: debian/buster:x86 DOCKER_IMAGE: debian/buster:x86
dependencies:
- debian/buster
test/debian/buster:x86: test/debian/buster:x86:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: debian/buster:x86 DOCKER_IMAGE: debian/buster:x86
dependencies: dependencies:
- build/debian/buster:x86 - debian/buster:x86
- build/debian/buster - debian/buster:x86_64
upload/debian/buster: upload/debian/buster:
<<: *upload <<: *upload
dependencies: dependencies:
- build/debian/buster:x86 - debian/buster:x86
- build/debian/buster - debian/buster:x86_64
- debian/buster
build/debian/stretch: # stretch
<<: *build debian/stretch:
<<: *source
variables: variables:
DOCKER_IMAGE: debian/stretch DOCKER_IMAGE: debian/stretch
test/debian/stretch: debian/stretch:x86_64:
<<: *binary
variables:
DOCKER_IMAGE: debian/stretch
dependencies:
- debian/stretch
test/debian/stretch:x86_64:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: debian/stretch DOCKER_IMAGE: debian/stretch
dependencies: dependencies:
- build/debian/stretch - debian/stretch
build/debian/stretch:x86: debian/stretch:x86:
<<: *build <<: *binary
variables: variables:
DOCKER_IMAGE: debian/stretch:x86 DOCKER_IMAGE: debian/stretch:x86
dependencies:
- debian/stretch
test/debian/stretch:x86: test/debian/stretch:x86:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: debian/stretch:x86 DOCKER_IMAGE: debian/stretch:x86
dependencies: dependencies:
- build/debian/stretch:x86 - debian/stretch:x86
- build/debian/stretch - debian/stretch:x86_64
upload/debian/stretch: upload/debian/stretch:
<<: *upload <<: *upload
dependencies: dependencies:
- build/debian/stretch:x86 - debian/stretch:x86
- build/debian/stretch - debian/stretch:x86_64
- debian/stretch
################################### ###################################
# Ubuntu # Ubuntu
################################### ###################################
build/ubuntu/disco:
<<: *build # disco
ubuntu/disco:
<<: *source
variables: variables:
ICINGA_BUILD_DEB_FLAVOR: stretch
DOCKER_IMAGE: ubuntu/disco DOCKER_IMAGE: ubuntu/disco
test/ubuntu/disco: ubuntu/disco:x86_64:
<<: *binary
variables:
DOCKER_IMAGE: ubuntu/disco
dependencies:
- ubuntu/disco
test/ubuntu/disco:x86_64:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: ubuntu/disco DOCKER_IMAGE: ubuntu/disco
dependencies: dependencies:
- build/ubuntu/disco - ubuntu/disco
build/ubuntu/disco:x86: ubuntu/disco:x86:
<<: *build <<: *binary
variables: variables:
ICINGA_BUILD_DEB_FLAVOR: stretch
DOCKER_IMAGE: ubuntu/disco:x86 DOCKER_IMAGE: ubuntu/disco:x86
dependencies:
- ubuntu/disco
test/ubuntu/disco:x86: test/ubuntu/disco:x86:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: ubuntu/disco:x86 DOCKER_IMAGE: ubuntu/disco:x86
dependencies: dependencies:
- build/ubuntu/disco:x86 - ubuntu/disco:x86
- build/ubuntu/disco - ubuntu/disco:x86_64
upload/ubuntu/disco: upload/ubuntu/disco:
<<: *upload <<: *upload
dependencies: dependencies:
- build/ubuntu/disco:x86 - ubuntu/disco:x86
- build/ubuntu/disco - ubuntu/disco:x86_64
- ubuntu/disco
build/ubuntu/bionic: # bionic
<<: *build ubuntu/bionic:
<<: *source
variables: variables:
ICINGA_BUILD_DEB_FLAVOR: stretch
DOCKER_IMAGE: ubuntu/bionic DOCKER_IMAGE: ubuntu/bionic
test/ubuntu/bionic: ubuntu/bionic:x86_64:
<<: *binary
variables:
DOCKER_IMAGE: ubuntu/bionic
dependencies:
- ubuntu/bionic
test/ubuntu/bionic:x86_64:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: ubuntu/bionic DOCKER_IMAGE: ubuntu/bionic
dependencies: dependencies:
- build/ubuntu/bionic - ubuntu/bionic
build/ubuntu/bionic:x86: ubuntu/bionic:x86:
<<: *build <<: *binary
variables: variables:
ICINGA_BUILD_DEB_FLAVOR: stretch
DOCKER_IMAGE: ubuntu/bionic:x86 DOCKER_IMAGE: ubuntu/bionic:x86
dependencies:
- ubuntu/bionic
test/ubuntu/bionic:x86: test/ubuntu/bionic:x86:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: ubuntu/bionic:x86 DOCKER_IMAGE: ubuntu/bionic:x86
dependencies: dependencies:
- build/ubuntu/bionic:x86 - ubuntu/bionic:x86
- build/ubuntu/bionic - ubuntu/bionic:x86_64
upload/ubuntu/bionic: upload/ubuntu/bionic:
<<: *upload <<: *upload
dependencies: dependencies:
- build/ubuntu/bionic:x86 - ubuntu/bionic:x86
- build/ubuntu/bionic - ubuntu/bionic:x86_64
- ubuntu/bionic
build/ubuntu/xenial: # xenial
<<: *build ubuntu/xenial:
<<: *source
variables: variables:
ICINGA_BUILD_DEB_FLAVOR: stretch
DOCKER_IMAGE: ubuntu/xenial DOCKER_IMAGE: ubuntu/xenial
test/ubuntu/xenial: ubuntu/xenial:x86_64:
<<: *binary
variables:
DOCKER_IMAGE: ubuntu/xenial
dependencies:
- ubuntu/xenial
test/ubuntu/xenial:x86_64:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: ubuntu/xenial DOCKER_IMAGE: ubuntu/xenial
dependencies: dependencies:
- build/ubuntu/xenial - ubuntu/xenial
build/ubuntu/xenial:x86: ubuntu/xenial:x86:
<<: *build <<: *binary
variables: variables:
ICINGA_BUILD_DEB_FLAVOR: stretch
DOCKER_IMAGE: ubuntu/xenial:x86 DOCKER_IMAGE: ubuntu/xenial:x86
dependencies:
- ubuntu/xenial
test/ubuntu/xenial:x86: test/ubuntu/xenial:x86:
<<: *test <<: *test
variables: variables:
DOCKER_IMAGE: ubuntu/xenial:x86 DOCKER_IMAGE: ubuntu/xenial:x86
dependencies: dependencies:
- build/ubuntu/xenial:x86 - ubuntu/xenial:x86
- build/ubuntu/xenial - ubuntu/xenial:x86_64
upload/ubuntu/xenial: upload/ubuntu/xenial:
<<: *upload <<: *upload
dependencies: dependencies:
- build/ubuntu/xenial:x86 - ubuntu/xenial:x86
- build/ubuntu/xenial - ubuntu/xenial:x86_64
- ubuntu/xenial
Supports Markdown
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