Commit ba31fe7c authored by Markus Frosch's avatar Markus Frosch 📣
Browse files

Add gitlab-ci

parent 4b8b28d3
stages:
- build
- test
variables:
DOCKER_IMAGE_BASE: registry.icinga.com/build-docker
STACK_TARGET: snapshot
ICINGA_BUILD_TYPE: snapshot
.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:
- 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
build centos 7:
variables:
DOCKER_IMAGE: centos/7:x86_64
<<: *build
test centos 7:
variables:
DOCKER_IMAGE: centos/7:x86_64
dependencies:
- build centos 7
<<: *test
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