1
0
mirror of https://github.com/hegerdes/gitlab-actions.git synced 2025-10-06 05:36:52 +02:00

fix: don't run merge pipeline on tags

Signed-off-by: Henrik Gerdes <hegerdes@outlook.de>
This commit is contained in:
Henrik Gerdes
2024-07-23 13:35:08 +02:00
parent 76e96f9dc1
commit eae6f04ed9
2 changed files with 6 additions and 1 deletions

View File

@@ -5,6 +5,9 @@
# Don't add it to a *branch* pipeline if it's already in a merge request pipeline.
- if: $CI_OPEN_MERGE_REQUESTS
when: never
# Don't add it to a *tag* pipeline.
- if: $CI_COMMIT_TAG
when: never
# Add the job to branch pipelines.
- if: "$CI_COMMIT_REF_NAME != $CI_DEFAULT_BRANCH"
default-branch-only-rules:
@@ -12,3 +15,5 @@
- if: "$CI_COMMIT_REF_NAME == $CI_DEFAULT_BRANCH"
default-schedule-rules:
- if: $CI_PIPELINE_SOURCE == "schedule"
default-tag-only-rules:
- if: $CI_COMMIT_TAG

View File

@@ -24,7 +24,7 @@ Currently sported snippets are:
* yq-multi-install
* azure-cli-install
* aws-cli-install
*
**NOTE:** All components and snippets are `arm64` ready. Gitlab now offers hosted ARM runners. You can use these when setting:
```yaml
default: