2018-01-07 07:00:47 +08:00
|
|
|
version_source: config
|
2017-12-16 08:02:35 +08:00
|
|
|
current:
|
|
|
|
major: 7
|
|
|
|
minor: 0
|
|
|
|
patch: 0
|
2018-01-07 06:35:18 +08:00
|
|
|
git_absorb: git-local
|
2018-01-07 07:00:47 +08:00
|
|
|
format: '{$major}.{$minor}.{$patch}'
|
2017-12-16 08:02:35 +08:00
|
|
|
build:
|
2018-01-07 06:35:18 +08:00
|
|
|
mode: number
|
2018-01-09 23:13:58 +08:00
|
|
|
length: 6
|
|
|
|
increment_by: 1
|
2018-02-09 01:07:21 +08:00
|
|
|
number: 180208-48346a
|
2017-12-16 23:27:19 +08:00
|
|
|
git_absorb: git-local
|
2017-12-16 08:02:35 +08:00
|
|
|
git:
|
2018-01-07 07:00:47 +08:00
|
|
|
git-local: 'git rev-parse --verify HEAD'
|
|
|
|
git-remote: 'git ls-remote {$repository}'
|
|
|
|
branch: refs/heads/master
|
|
|
|
repository: '{{ env(''VERSION_GIT_REMOTE_REPOSITORY'') }}'
|
2017-12-16 08:02:35 +08:00
|
|
|
version:
|
2018-01-07 07:00:47 +08:00
|
|
|
git-local: 'git describe'
|
|
|
|
git-remote: 'git ls-remote {$repository} | grep tags/ | grep -v {} | cut -d / -f 3 | sort --version-sort | tail -1'
|
|
|
|
matcher: '/[V|v]*[ersion]*\s*\.*(\d+)\.(\d+)\.(\d+)\.*(\w*)/'
|
2017-12-16 08:02:35 +08:00
|
|
|
format:
|
2018-01-07 07:00:47 +08:00
|
|
|
major: '{$major}'
|
|
|
|
minor: '{$minor}'
|
|
|
|
patch: '{$patch}'
|
|
|
|
build: '{$build}'
|
|
|
|
version: '{$major}.{$minor}.{$patch} (build {$build})'
|
|
|
|
full: 'version {{''format.version''}}'
|
|
|
|
compact: 'v{$major}.{$minor}.{$patch}-{$build}'
|