File tree Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Expand file tree Collapse file tree 1 file changed +16
-4
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,11 @@ local task_pkg_build_deb() = {
7474 name: 'version' ,
7575 command: |||
7676 if [ -z ${AGOLA_GIT_TAG} ] || [[ ${AGOLA_GIT_TAG} == *-* ]]; then
77- export VERSION=latest
77+ if [[ ${AGOLA_GIT_TAG} == *-rc.* ]]; then
78+ export VERSION=$(echo $AGOLA_GIT_TAG | sed 's/-/_/g')
79+ else
80+ export VERSION=latest
81+ fi
7882 else
7983 export VERSION=${AGOLA_GIT_TAG}
8084 fi
@@ -133,7 +137,11 @@ local task_pkg_build_rhel(setup) = {
133137 name: 'version' ,
134138 command: |||
135139 if [ -z ${AGOLA_GIT_TAG} ] || [[ ${AGOLA_GIT_TAG} == *-* ]]; then
136- export VERSION=latest
140+ if [[ ${AGOLA_GIT_TAG} == *-rc.* ]]; then
141+ export VERSION=$(echo $AGOLA_GIT_TAG | sed 's/-/_/g')
142+ else
143+ export VERSION=latest
144+ fi
137145 else
138146 export VERSION=${AGOLA_GIT_TAG}
139147 fi
@@ -319,8 +327,12 @@ steps: [
319327 type: 'run' ,
320328 name: 'version' ,
321329 command: |||
322- if [ -z ${AGOLA_GIT_TAG} ] || [[ ${AGOLA_GIT_TAG} == *-* ]]; then
323- export VERSION=latest
330+ if [ -z ${AGOLA_GIT_TAG} ] || [[ ${AGOLA_GIT_TAG} == *-* ]]; then
331+ if [[ ${AGOLA_GIT_TAG} == *-rc.* ]]; then
332+ export VERSION=$(echo $AGOLA_GIT_TAG | sed 's/-/_/g')
333+ else
334+ export VERSION=latest
335+ fi
324336 else
325337 export VERSION=${AGOLA_GIT_TAG}
326338 fi
You can’t perform that action at this time.
0 commit comments