rpm-l10n/.gitlab-ci.yml

144 lines
2.3 KiB
YAML

stages:
- build
- test
- upload
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
ICINGA_BUILD_TYPE: snapshot
ICINGA_BUILD_UPSTREAM_BRANCH: main
.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
###################################
# Centos
###################################
build/centos/7:
<<: *build
variables:
DOCKER_IMAGE: centos/7
test/centos/7:
<<: *test
variables:
DOCKER_IMAGE: centos/7
dependencies:
- build/centos/7
upload/centos/7:
<<: *upload
dependencies:
- build/centos/7
###################################
# Fedora
###################################
build/fedora/36:
<<: *build
variables:
DOCKER_IMAGE: fedora/36
RPM_BUILD_NCPUS: '1'
test/fedora/36:
<<: *test
variables:
DOCKER_IMAGE: fedora/36
dependencies:
- build/fedora/36
upload/fedora/36:
<<: *upload
dependencies:
- build/fedora/36
build/fedora/35:
<<: *build
variables:
DOCKER_IMAGE: fedora/35
RPM_BUILD_NCPUS: '1'
test/fedora/35:
<<: *test
variables:
DOCKER_IMAGE: fedora/35
dependencies:
- build/fedora/35
upload/fedora/35:
<<: *upload
dependencies:
- build/fedora/35
###################################
# openSUSE
###################################
build/opensuse/15.4:
<<: *build
variables:
DOCKER_IMAGE: opensuse/15.4
test/opensuse/15.4:
<<: *test
variables:
DOCKER_IMAGE: opensuse/15.4
dependencies:
- build/opensuse/15.4
upload/openSUSE/15.4:
<<: *upload
dependencies:
- build/opensuse/15.4
build/opensuse/15.3:
<<: *build
variables:
DOCKER_IMAGE: opensuse/15.3
test/opensuse/15.3:
<<: *test
variables:
DOCKER_IMAGE: opensuse/15.3
dependencies:
- build/opensuse/15.3
upload/openSUSE/15.3:
<<: *upload
dependencies:
- build/opensuse/15.3