rpm-icinga2/.gitlab-ci.yml

68 lines
1.0 KiB
YAML

stages:
- build
- test
- upload
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
#ICINGA_BUILD_TYPE: snapshot
ICINGA_BUILD_TYPE: release
ICINGA_BUILD_OS: rhel
.build: &build
stage: build
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
script:
- icinga-build-package
cache:
key: "${CI_JOB_NAME}"
paths:
- ccache/
- 'icinga2.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/rhel/6:
<<: *build
variables:
DOCKER_IMAGE: rhel/6
test/rhel/6:
<<: *test
variables:
DOCKER_IMAGE: rhel/6
dependencies:
- build/rhel/6
upload/rhel/6:
<<: *upload
dependencies:
- build/rhel/6