Build docker image on master branch. (#3039)

This commit is contained in:
Arik Fraimovich 2018-11-04 12:12:13 +02:00 committed by GitHub
parent 46941d3aa1
commit 27f489de20
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -151,4 +151,6 @@ workflows:
filters:
branches:
only:
- master
- preview-build
- /release\/.*/

View File

@ -1,5 +1,10 @@
#!/bin/bash
VERSION=$(jq -r .version package.json)
FULL_VERSION=$VERSION.b$CIRCLE_BUILD_NUM
if [ $CIRCLE_BRANCH = master ] || [ $CIRCLE_BRANCH = preview-build ]
then
FULL_VERSION='preview'
else
VERSION=$(jq -r .version package.json)
FULL_VERSION=$VERSION.b$CIRCLE_BUILD_NUM
fi
echo $FULL_VERSION