rpm-icinga-php-library/.gitlab-ci.yml

139 lines
2.2 KiB
YAML
Raw Permalink Normal View History

2021-06-14 03:00:56 +02:00
stages:
- build
- test
- upload
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
2022-06-30 05:53:49 +02:00
#ICINGA_BUILD_TYPE: snapshot
#ICINGA_BUILD_UPSTREAM_BRANCH: snapshot/nightly
2021-06-14 03:00:56 +02:00
.build: &build
stage: build
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- icinga-build-package
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
2021-06-29 10:21:11 +02:00
only:
- master
- tags
2021-06-14 03:00:56 +02:00
2022-06-30 04:39:19 +02:00
###################################
# Centos
###################################
2021-06-14 03:00:56 +02:00
build/centos/7:
<<: *build
variables:
DOCKER_IMAGE: centos/7
test/centos/7:
<<: *test
variables:
DOCKER_IMAGE: centos/7
dependencies:
- build/centos/7
2022-02-27 22:54:51 +01:00
upload/centos/7:
2021-06-14 03:00:56 +02:00
<<: *upload
dependencies:
- build/centos/7
2022-06-22 23:58:41 +02:00
2022-06-30 04:39:19 +02:00
###################################
# Fedora
###################################
2022-06-22 23:58:41 +02:00
build/fedora/36:
<<: *build
variables:
DOCKER_IMAGE: fedora/36
RPM_BUILD_NCPUS: '1'
test/fedora/36:
<<: *test
variables:
DOCKER_IMAGE: fedora/36
dependencies:
2022-06-30 04:39:19 +02:00
- build/fedora/36
2022-06-22 23:58:41 +02:00
upload/fedora/36:
<<: *upload
dependencies:
2022-06-30 04:39:19 +02:00
- build/fedora/36
2022-06-22 23:58:41 +02:00
build/fedora/35:
<<: *build
variables:
DOCKER_IMAGE: fedora/35
RPM_BUILD_NCPUS: '1'
test/fedora/35:
<<: *test
variables:
DOCKER_IMAGE: fedora/35
dependencies:
2022-06-30 04:39:19 +02:00
- build/fedora/35
2022-06-22 23:58:41 +02:00
upload/fedora/35:
<<: *upload
dependencies:
2022-06-30 04:39:19 +02:00
- build/fedora/35
2022-06-22 23:59:19 +02:00
2022-06-30 04:39:19 +02:00
###################################
# openSUSE
###################################
2022-06-22 23:59:19 +02:00
build/opensuse/15.4:
<<: *build
variables:
DOCKER_IMAGE: opensuse/15.4
test/opensuse/15.4:
<<: *test
variables:
DOCKER_IMAGE: opensuse/15.4
dependencies:
2022-06-30 04:39:19 +02:00
- build/opensuse/15.4
2022-06-22 23:59:19 +02:00
2022-06-30 04:39:19 +02:00
upload/openSUSE/15.4:
2022-06-22 23:59:19 +02:00
<<: *upload
dependencies:
2022-06-30 04:39:19 +02:00
- build/opensuse/15.4
2022-06-22 23:59:19 +02:00
build/opensuse/15.3:
<<: *build
variables:
DOCKER_IMAGE: opensuse/15.3
test/opensuse/15.3:
<<: *test
variables:
DOCKER_IMAGE: opensuse/15.3
dependencies:
2022-06-30 04:39:19 +02:00
- build/opensuse/15.3
2022-06-22 23:59:19 +02:00
2022-06-30 04:39:19 +02:00
upload/openSUSE/15.3:
2022-06-22 23:59:19 +02:00
<<: *upload
dependencies:
2022-06-30 04:39:19 +02:00
- build/opensuse/15.3