Set explicit version in CIBUILD

This commit is contained in:
Neil Alexander 2018-03-04 10:58:10 +00:00
parent 3deadee42e
commit 54a742d576

View File

@ -15,7 +15,7 @@ jobs:
name: Create artifact upload directory and set variables name: Create artifact upload directory and set variables
command: | command: |
mkdir /tmp/upload mkdir /tmp/upload
echo 'export CIBUILD=0.$(git rev-list HEAD --count | xargs printf "%04d")' >> $BASH_ENV echo 'export CIBUILD=0.1.$(git rev-list HEAD --count | xargs printf "%04d")' >> $BASH_ENV
echo 'export CIBRANCH=$(git name-rev --name-only HEAD)' >> $BASH_ENV echo 'export CIBRANCH=$(git name-rev --name-only HEAD)' >> $BASH_ENV
echo '[ "$CIBRANCH" != "master" ] && export CIVERSION=$CIBRANCH-$CIBUILD || export CIVERSION=$CIBUILD' >> $BASH_ENV echo '[ "$CIBRANCH" != "master" ] && export CIVERSION=$CIBRANCH-$CIBUILD || export CIVERSION=$CIBUILD' >> $BASH_ENV