mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 19:29:59 -04:00
Apply special git tag rules only in the private project
We do not want to re-release tags we create in the private project
anyway. Moreover pushing tags back into the public project after release
caused to Gitlab to create tag pipelines which never finished, which was
only confusing thing.
(cherry picked from commit 675d9c7425)
This commit is contained in:
parent
8bf52ff025
commit
2a99eb5d09
1 changed files with 6 additions and 6 deletions
|
|
@ -307,7 +307,7 @@ stages:
|
|||
allow_failure: true # don't block the pipeline or the pipeline result
|
||||
|
||||
.rule_tag: &rule_tag
|
||||
- if: '$CI_COMMIT_TAG != null'
|
||||
- if: '$CI_PROJECT_NAMESPACE == "isc-private" && $CI_COMMIT_TAG != null'
|
||||
|
||||
.rule_source_other_than_mr: &rule_source_other_than_mr
|
||||
- if: '$CI_PIPELINE_SOURCE =~ /^(api|pipeline|schedule|trigger|web)$/ && $REBASE_ONLY != "1"'
|
||||
|
|
@ -499,7 +499,7 @@ stages:
|
|||
when: manual # don't run on each MR unless requested
|
||||
allow_failure: true
|
||||
# - &shotgun_rule_tag
|
||||
# if: '$CI_COMMIT_TAG != null'
|
||||
# if: '$CI_PROJECT_NAMESPACE == "isc-private" && $CI_COMMIT_TAG != null'
|
||||
# variables:
|
||||
# SHOTGUN_ROUNDS: 3
|
||||
# - &shotgun_rule_other
|
||||
|
|
@ -1757,7 +1757,7 @@ release:
|
|||
- job: docs
|
||||
artifacts: true
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG != null'
|
||||
- *rule_tag
|
||||
artifacts:
|
||||
paths:
|
||||
- "*-release"
|
||||
|
|
@ -1801,7 +1801,7 @@ sign:
|
|||
- job: release
|
||||
artifacts: true
|
||||
rules:
|
||||
- if: '$CI_COMMIT_TAG != null'
|
||||
- *rule_tag
|
||||
when: manual
|
||||
allow_failure: false
|
||||
|
||||
|
|
@ -1879,7 +1879,7 @@ customer-git:tag:
|
|||
- job: release
|
||||
artifacts: false
|
||||
rules:
|
||||
- if: '$CI_PROJECT_NAMESPACE == "isc-private" && $CI_COMMIT_TAG != null'
|
||||
- *rule_tag
|
||||
before_script:
|
||||
- git clone --depth 1 https://gitlab.isc.org/isc-projects/bind9-qa.git
|
||||
- git clone --depth 1 "https://token:${ISC_CUSTOMERS_WRITE_TOKEN}@gitlab.isc.org/isc-customers/isc-customer-settings.git"
|
||||
|
|
@ -2074,7 +2074,7 @@ stress-test-child-pipeline:
|
|||
- if: '$CI_MERGE_REQUEST_DIFF_BASE_SHA != null'
|
||||
when: manual # don't run on each MR unless requested
|
||||
allow_failure: true
|
||||
- if: '$CI_COMMIT_TAG != null'
|
||||
- *rule_tag
|
||||
- if: '$CI_PIPELINE_SOURCE =~ /^(api|pipeline|schedule|trigger|web)$/ && $REBASE_ONLY != "1"'
|
||||
trigger:
|
||||
include:
|
||||
|
|
|
|||
Loading…
Reference in a new issue