-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgit-that-semver.default.yaml
More file actions
56 lines (50 loc) · 1.55 KB
/
git-that-semver.default.yaml
File metadata and controls
56 lines (50 loc) · 1.55 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
platform: auto
defaults:
branchPrefixes:
- feature/
- fix/
- bugfix/
- hotfix/
- chore/
- tech/
snapshot:
defaultBranches:
- main
prefixTpl: |
{{ commitInfo.previousSemVerReleaseVersion | semver_inc: 'minor' | append: '-' }}
branchIdentifierTpl: |
{% if config.snapshot.useChangeRequestIdentifier and commitInfo.changeRequestIdentifier %}
{{- commitInfo.changeRequestIdentifier | append: '.' -}}
{% elsif branchIdentifier %}
{{- branchIdentifier | truncate: 20, '' | trim_alphanumeric | append: '.' -}}
{% endif %}
commitIdentifierTpl: |
{{ commitInfo.dateTime }}.{{ commitInfo.sha | truncate: 12, '' }}
versionTpl: |
{{ prefix }}{{ branchIdentifier }}{{ commitIdentifier }}{{ suffix }}
strategies:
docker:
enabled: true
tags:
enabled: true
snapshot:
- "{{ version }}"
- "{{ commitInfo.sha }}"
- "{% if config.snapshot.defaultBranches contains commitInfo.refName %}{{ commitInfo.refName }}{% endif %}"
tagged:
- "{{ version }}"
semVer:
- "{{ version }}"
- "{% if versionInfo.isHighestSameMinorReleaseVersion %}{{ semVer.major }}.{{ semVer.minor }}{% endif %}"
- "{% if versionInfo.isHighestSameMajorReleaseVersion and semVer.major > 0 %}{{ semVer.major }}{% endif %}"
- "{% if versionInfo.isHighestSemVerReleaseVersion %}latest{% endif %}"
npm:
enabled: false
java:
enabled: false
snapshot:
suffixTpl: "-SNAPSHOT"
output:
type: env
env:
prefix: GTS_