From 7b8cd22a46122bba32eabedd2f1aa5ce4223fa35 Mon Sep 17 00:00:00 2001 From: Angus Gratton Date: Fri, 22 May 2020 15:04:39 +1000 Subject: [PATCH] ci: Don't push to Github or deploy docs on customized pipelines BOT_TRIGGER_WITH_LABEL must be empty (meaning all tests are running). --- .gitlab-ci.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d548b1b8a..c0cdc4dca 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -597,9 +597,12 @@ push_to_github: tags: - deploy only: - - master - - /^release\/v/ - - /^v\d+\.\d+(\.\d+)?($|-)/ + refs: + - master + - /^release\/v/ + - /^v\d+\.\d+(\.\d+)?($|-)/ + variables: + - $BOT_TRIGGER_WITH_LABEL == null when: on_success dependencies: [] before_script: *do_nothing_before