From 31bde118db8cae4a0f5a9484e3beead66fcc24d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20K=C4=99pie=C5=84?= Date: Sat, 20 Oct 2018 23:09:08 +0200 Subject: [PATCH] Automatically trigger GitLab Pages pipelines Whenever master or one for the v9_* branches gets updated, the current ARM should be published on GitLab Pages. Add a pipeline stage which takes care of triggering GitLab Pages pipelines. Extend the lifetime of artifact archives containing the ARM to prevent GitLab Pages pipelines from failing due to artifacts being unavailable. --- .gitlab-ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index db42778184b..567ac05a9f4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -10,6 +10,7 @@ stages: - precheck - build - test + - push .centos-centos6-amd64: ¢os_centos6_amd64_image image: "$CI_REGISTRY_IMAGE:centos-centos6-amd64" @@ -193,7 +194,17 @@ docs:debian:sid:amd64: artifacts: paths: - doc/arm/ - expire_in: '1 hour' + expire_in: '1 month' + +push:docs: + <<: *debian_sid_amd64_image + stage: push + dependencies: [] + script: + - curl -X POST -F token=$GITLAB_PAGES_DOCS_TRIGGER_TOKEN -F ref=master $GITLAB_PAGES_DOCS_TRIGGER_URL + only: + - master@isc-projects/bind9 + - /^v9_.*$/@isc-projects/bind9 #build:debian:jessie:amd64: # <<: *debian_jessie_amd64_image -- GitLab