mirror of
https://github.com/wassname/talk.git
synced 2026-07-14 11:18:50 +08:00
Merge pull request #289 from coralproject/circle-release-fix
Circle release fix
This commit is contained in:
+1
-1
@@ -35,7 +35,7 @@ test:
|
||||
|
||||
deployment:
|
||||
release:
|
||||
tag: /[0-9]+(\.[0-9]+)*/
|
||||
tag: /v[0-9]+(\.[0-9]+)*/
|
||||
commands:
|
||||
- bash ./scripts/deploy.sh
|
||||
|
||||
|
||||
+4
-4
@@ -8,11 +8,11 @@ docker login -e $DOCKER_EMAIL -u $DOCKER_USER -p $DOCKER_PASS
|
||||
|
||||
deploy_tag() {
|
||||
# Find our individual versions from the tags
|
||||
if [ -n "$(echo $CIRCLE_TAG | grep -E '.*\..*\..*')" ]
|
||||
if [ -n "$(echo $CIRCLE_TAG | grep -E 'v.*\..*\..*')" ]
|
||||
then
|
||||
major=$(echo $CIRCLE_TAG | cut -d. -f1)
|
||||
minor=$(echo $CIRCLE_TAG | cut -d. -f2)
|
||||
patch=$(echo $CIRCLE_TAG | cut -d. -f3)
|
||||
major=$(echo ${CIRCLE_TAG//v} | cut -d. -f1)
|
||||
minor=$(echo ${CIRCLE_TAG//v} | cut -d. -f2)
|
||||
patch=$(echo ${CIRCLE_TAG//v} | cut -d. -f3)
|
||||
|
||||
major_version_tag=$major
|
||||
minor_version_tag=$major.$minor
|
||||
|
||||
Reference in New Issue
Block a user