Commit df233b12 authored by Markus Frosch's avatar Markus Frosch 📣

Enable gitlab-ci

parent 71e30ec9
Pipeline #2531 passed with stages
in 4 minutes and 27 seconds
stages:
- build
- test
# - upload
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
ICINGA_BUILD_TYPE: snapshot
# all builds use the stretch data as of now
ICINGA_BUILD_DEB_FLAVOR: stretch
.build: &build
stage: build
tags:
- docker
image: ${DOCKER_IMAGE_BASE}/${DOCKER_IMAGE}
before_script:
- echo "machine git.icinga.com login ${ICINGA_GITLAB_USER} password ${ICINGA_GITLAB_TOKEN}" >> $HOME/.netrc
script:
# TODO: remove when merged
- '[ "$(date +%s)" -gt 1538344800 ] || export ICINGA_BUILD_UPSTREAM_BRANCH=mfrosch/packaging'
- 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:
# - icinga-build-upload-aptly --result build/ --target $UPLOAD_TARGET --release $UPLOAD_RELEASE --insecure
# only:
# - tags
build debian stretch x86:
variables:
DOCKER_IMAGE: debian/stretch:x86
<<: *build
test debian stretch x86:
variables:
DOCKER_IMAGE: debian/stretch:x86
dependencies:
- build debian stretch x86
<<: *test
build debian stretch:
variables:
DOCKER_IMAGE: debian/stretch:x86_64
<<: *build
test debian stretch:
variables:
DOCKER_IMAGE: debian/stretch:x86_64
dependencies:
- build debian stretch
<<: *test
# upload debian stretch:
# variables:
# UPLOAD_TARGET: stack/debian
# UPLOAD_RELEASE: icinga-stretch
# dependencies:
# - build debian stretch
# <<: *upload
build ubuntu bionic x86:
variables:
DOCKER_IMAGE: ubuntu/bionic:x86
<<: *build
test ubuntu bionic x86:
variables:
DOCKER_IMAGE: ubuntu/bionic:x86
dependencies:
- build ubuntu bionic x86
<<: *test
build ubuntu bionic:
variables:
DOCKER_IMAGE: ubuntu/bionic:x86_64
<<: *build
test ubuntu bionic:
variables:
DOCKER_IMAGE: ubuntu/bionic:x86_64
dependencies:
- build ubuntu bionic
<<: *test
# upload ubuntu bionic:
# variables:
# UPLOAD_TARGET: stack/ubuntu
# UPLOAD_RELEASE: icinga-bionic
# dependencies:
# - build ubuntu bionic
# <<: *upload
Markdown is supported
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