From 9dc22badf5b733aa03e8f55247071f0c3f093ffe Mon Sep 17 00:00:00 2001 From: Markus Frosch <markus.frosch@icinga.com> Date: Tue, 3 Apr 2018 11:59:16 +0200 Subject: [PATCH] Add gitlab-ci.yml --- .gitlab-ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .gitlab-ci.yml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 0000000..fc9a631 --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,32 @@ +image: docker:latest +services: + - docker:dind + +stages: + - build + +variables: + DOCKER_REGISTRY: registry.icinga.com + DOCKER_IMAGE_PREFIX: ${CI_PROJECT_PATH}/ + +before_script: + - docker info + - docker login -u gitlab-ci-token -p $CI_JOB_TOKEN registry.icinga.com + - apk -U add make + +.build_job: &build_job + stage: build + tags: + - docker-build + script: + - make -C ${CI_JOB_NAME} + - '[ "$CI_COMMIT_REF_NAME" != master ] || make -C ${CI_JOB_NAME} push' + +7: + <<: *build_job + +6: + <<: *build_job + +6-i386: + <<: *build_job -- GitLab