190 lines
2.9 KiB
YAML
190 lines
2.9 KiB
YAML
|
stages:
|
||
|
- build
|
||
|
- test
|
||
|
- upload
|
||
|
|
||
|
variables:
|
||
|
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
|
||
|
ICINGA_BUILD_TYPE: snapshot
|
||
|
#ICINGA_BUILD_UPSTREAM_BRANCH:
|
||
|
|
||
|
.build: &build
|
||
|
stage: build
|
||
|
tags:
|
||
|
- docker
|
||
|
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
|
||
|
script:
|
||
|
- icinga-build-package
|
||
|
cache:
|
||
|
key: "${CI_JOB_NAME}"
|
||
|
paths:
|
||
|
- ccache/
|
||
|
- 'L10n.git'
|
||
|
artifacts:
|
||
|
paths:
|
||
|
- build/*
|
||
|
expire_in: 1 week
|
||
|
|
||
|
.test: &test
|
||
|
stage: test
|
||
|
tags:
|
||
|
- docker
|
||
|
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
|
||
|
script:
|
||
|
- find build/
|
||
|
- icinga-build-test
|
||
|
|
||
|
.upload: &upload
|
||
|
stage: upload
|
||
|
tags:
|
||
|
- docker
|
||
|
image: ${DOCKER_IMAGE_BASE}/upload
|
||
|
script:
|
||
|
- find build/
|
||
|
- icinga-build-upload-aptly
|
||
|
only:
|
||
|
- master
|
||
|
- tags
|
||
|
|
||
|
###################################
|
||
|
# EPEL
|
||
|
###################################
|
||
|
build/centos/8:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: centos/8
|
||
|
|
||
|
test/centos/8:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: centos/8
|
||
|
dependencies:
|
||
|
- build/centos/8
|
||
|
|
||
|
|
||
|
build/centos/7:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: centos/7
|
||
|
|
||
|
test/centos/7:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: centos/7
|
||
|
dependencies:
|
||
|
- build/centos/7
|
||
|
|
||
|
|
||
|
###################################
|
||
|
# Fedora
|
||
|
###################################
|
||
|
build/fedora/31:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: fedora/31
|
||
|
|
||
|
test/fedora/31:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: fedora/31
|
||
|
dependencies:
|
||
|
- build/fedora/31
|
||
|
|
||
|
|
||
|
build/fedora/30:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: fedora/30
|
||
|
|
||
|
test/fedora/30:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: fedora/30
|
||
|
dependencies:
|
||
|
- build/fedora/30
|
||
|
|
||
|
|
||
|
build/fedora/29:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: fedora/29
|
||
|
|
||
|
test/fedora/29:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: fedora/29
|
||
|
dependencies:
|
||
|
- build/fedora/29
|
||
|
|
||
|
|
||
|
###################################
|
||
|
# SLES
|
||
|
###################################
|
||
|
build/sles/15.1:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: sles/15.1
|
||
|
|
||
|
test/sles/15.1:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: sles/15.1
|
||
|
dependencies:
|
||
|
- build/sles/15.1
|
||
|
|
||
|
|
||
|
build/sles/15.0:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: sles/15.0
|
||
|
|
||
|
test/sles/15.0:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: sles/15.0
|
||
|
dependencies:
|
||
|
- build/sles/15.0
|
||
|
|
||
|
|
||
|
build/sles/12.4:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: sles/12.4
|
||
|
|
||
|
test/sles/12.4:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: sles/12.4
|
||
|
dependencies:
|
||
|
- build/sles/12.4
|
||
|
|
||
|
|
||
|
###################################
|
||
|
# openSUSE
|
||
|
###################################
|
||
|
build/opensuse/15.1:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: opensuse/15.1
|
||
|
|
||
|
test/opensuse/15.1:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: opensuse/15.1
|
||
|
dependencies:
|
||
|
- build/opensuse/15.1
|
||
|
|
||
|
|
||
|
build/opensuse/15.0:
|
||
|
<<: *build
|
||
|
variables:
|
||
|
DOCKER_IMAGE: opensuse/15.0
|
||
|
|
||
|
test/opensuse/15.0:
|
||
|
<<: *test
|
||
|
variables:
|
||
|
DOCKER_IMAGE: opensuse/15.0
|
||
|
dependencies:
|
||
|
- build/opensuse/15.0
|
||
|
|