Enable deploy of four number version

This commit is contained in:
bernat 2020-09-30 20:22:25 +02:00
parent d2d15e4bab
commit 0c97e9a5de
1 changed files with 4 additions and 0 deletions

View File

@ -63,6 +63,10 @@ if [[ ${REPOSITORY_TAG} =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
log "Detected tag ${REPOSITORY_TAG}."
DEPLOY_NAME=CARLA_${REPOSITORY_TAG}.tar.gz
DOCKER_TAG=${REPOSITORY_TAG}
elif [[ ${REPOSITORY_TAG} =~ ^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
log "Detected tag ${REPOSITORY_TAG}."
DEPLOY_NAME=CARLA_${REPOSITORY_TAG}.tar.gz
DOCKER_TAG=${REPOSITORY_TAG}
else
S3_PREFIX=${S3_PREFIX}/Dev
DEPLOY_NAME=$(git log --pretty=format:'%cd_%h' --date=format:'%Y%m%d' -n 1).tar.gz