Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-06-15 18:10:04 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-06-15 18:10:04 +0300
commit68d7192881c41305da9c6aa1e3f7dd8b47f286a7 (patch)
tree015aae6f32b30437718e76c663e8383a4a4d8a22 /doc/ci/triggers
parent96acc69fae1ee7d559ba7eaa4e8304c8261525e3 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/ci/triggers')
-rw-r--r--doc/ci/triggers/README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/doc/ci/triggers/README.md b/doc/ci/triggers/README.md
index 815a43bf3d2..b8d0df44598 100644
--- a/doc/ci/triggers/README.md
+++ b/doc/ci/triggers/README.md
@@ -57,8 +57,8 @@ trigger_pipeline:
stage: deploy
script:
- curl --request POST --form "token=$CI_JOB_TOKEN" --form ref=main "https://gitlab.example.com/api/v4/projects/9/trigger/pipeline"
- only:
- - tags
+ rules:
+ - if: $CI_COMMIT_TAG
```
Pipelines triggered that way also expose a special variable:
@@ -83,8 +83,8 @@ build_submodule:
- apt update && apt install -y unzip
- curl --location --output artifacts.zip "https://gitlab.example.com/api/v4/projects/1/jobs/artifacts/main/download?job=test&job_token=$CI_JOB_TOKEN"
- unzip artifacts.zip
- only:
- - tags
+ rules:
+ - if: $CI_COMMIT_TAG
```
This allows you to use that for multi-project pipelines and download artifacts
@@ -163,8 +163,8 @@ trigger_pipeline:
stage: deploy
script:
- 'curl --request POST --form token=TOKEN --form ref=main "https://gitlab.example.com/api/v4/projects/9/trigger/pipeline"'
- only:
- - tags
+ rules:
+ - if: $CI_COMMIT_TAG
```
This means that whenever a new tag is pushed on project A, the job runs and the