phpvms/config/version.yml

31 lines
872 B
YAML
Raw Normal View History

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
format: '{$major}.{$minor}.{$patch}'
2017-12-16 08:02:35 +08:00
build:
2018-01-07 06:35:18 +08:00
mode: number
length: 6
increment_by: 1
2018-02-09 09:16:03 +08:00
number: 180209-bcc6be
2017-12-16 23:27:19 +08:00
git_absorb: git-local
2017-12-16 08:02:35 +08:00
git:
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:
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:
major: '{$major}'
minor: '{$minor}'
patch: '{$patch}'
build: '{$build}'
version: '{$major}.{$minor}.{$patch} (build {$build})'
full: 'version {{''format.version''}}'
compact: 'v{$major}.{$minor}.{$patch}-{$build}'