version_source: config
current:
  label: ""
  major: 8
  minor: 0
  patch: 0
  prerelease: false
  buildmetadata:
  commit: ""
  git_absorb: git-local
  format: "{$major}.{$minor}.{$patch}"
build:
  mode: number
  length: 6
  number: null
  git_absorb: git-local
git:
  git-local: "git rev-parse --verify HEAD"
  git-remote: "git ls-remote {$repository}"
  branch: refs/heads/master
  repository: "{{ env('VERSION_GIT_REMOTE_REPOSITORY') }}"
  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*)/'
format:
  major: "{$major}"
  minor: "{$minor}"
  patch: "{$patch}"
  build: "{$build}"
  version: "{$major}.{$minor}.{$patch} (build {$build})"
  full: "version {{'format.version'}}"
  compact: "{$major}.{$minor}.{$patch}+{$build}"
