unify rancher update strategy (#5367)

* unify rancher update strategy

* fix script

* fix script
This commit is contained in:
Eugenio Romano
2020-01-13 16:06:59 +01:00
committed by GitHub
parent a8c2a0b1e2
commit fd53531be7
9 changed files with 40 additions and 135 deletions

View File

@@ -0,0 +1,21 @@
#!/usr/bin/env bash
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
cd $DIR/../../../
if [[ $TRAVIS_PULL_REQUEST == "false" ]];
then
TAG_NPM=latest
if [[ $TRAVIS_BRANCH == "development" ]];
then
TAG_NPM=alpha
if [[ $TRAVIS_EVENT_TYPE == "cron" ]];
then
TAG_NPM=beta
fi
fi
fi;
echo "Publishing on npm with tag $TAG_NPM"
./node_modules/@alfresco/adf-cli/bin/adf-cli npm-publish --npmRegistry $NPM_REGISTRY_ADDRESS --tokenRegistry $NPM_REGISTRY_TOKEN --tag $TAG_NPM --pathProject "$(pwd)"