mirror of
https://github.com/valitydev/redash.git
synced 2024-11-06 17:15:17 +00:00
Build docker image on master branch. (#3039)
This commit is contained in:
parent
46941d3aa1
commit
27f489de20
@ -151,4 +151,6 @@ workflows:
|
||||
filters:
|
||||
branches:
|
||||
only:
|
||||
- master
|
||||
- preview-build
|
||||
- /release\/.*/
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user