/
.gitlab-ci.yml
39 lines (35 loc) · 1.14 KB
/
.gitlab-ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
# Workflow of the included templates:
#
# 1) Unless pipeline is triggered by a tag, this project will be linted
# with pylint and a pylint-score-badge is generated.
#
# 2) This pipeline will always build this project and store it as artifact.
#
# 3) Unless triggered via tag, a semantic release will be generated.
# If current branch is not main aka a protected branch,
# semantc-release does only a dry-run.
#
# 4) If triggered via tag, build will be released with twine
#
# 5) Sync ref and tags from gitlab to github
#
# Templates/Includes located and documented here:
# https://gitlab.der-jd.de/gitlab/ci-templates
#
include:
- { project: gitlab/ci-templates, file: lint/python.yml }
- { project: gitlab/ci-templates, file: build/python.yml }
- { project: gitlab/ci-templates, file: release/semantic.yml }
- { project: gitlab/ci-templates, file: release/python.yml }
- { project: gitlab/ci-templates, file: release/github.yml }
workflow:
rules:
- if: $CI_COMMIT_TAG
- if: $CI_COMMIT_MESSAGE =~ /chore\(release\):/
when: never
- if: $CI_PIPELINE_SOURCE =~ /api|push|merge|web/
stages:
- lint
- build
- release