Commit d2505e51 authored by Carlos Juliano Viana's avatar Carlos Juliano Viana
Browse files

Atualizando a obtenção da última versão da tag e do script para gerar a próxima versão.

[SOMA-6617]
[SOMA-4534]
parent 5cb73730
Pipeline #67073 passed with stages
in 3 minutes and 20 seconds
......@@ -50,9 +50,9 @@ stages:
versioning_master:
extends: .versioning_template
before_script:
- export LAST_VERSION=$(git tag --list | grep -E "^[0-9]+\.[0-9]+\.[0-9]+$" | tail -1)
- export NEXT_VERSION=$(echo $LAST_VERSION | tail -1 | awk -F. -v OFS=. 'NF==1{print ++$NF}; NF>1{if(length($NF+1)>length($NF))$(NF-1)++; $NF=sprintf("%0*d", length($NF), ($NF+1)%(10^length($NF))); print}')
- export SGA_VERSION="$NEXT_VERSION-SNAPSHOT-1"
- export LAST_VERSION=$(git describe --tags --abbrev=0)
- export NEXT_VERSION=$(echo $LAST_VERSION | awk -F. -v OFS=. '{$NF++;print}')
- export SGA_VERSION="$NEXT_VERSION-SNAPSHOT"
only:
- master
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment