Skip to content
This repository was archived by the owner on Oct 30, 2023. It is now read-only.

Commit

Permalink
staging-files-move-to-develop
Browse files Browse the repository at this point in the history
  • Loading branch information
Zalasanjay committed Mar 7, 2018
1 parent 7c3030f commit e4c0475
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,4 @@ notifications:
- [email protected]
- [email protected]
on_success: always
on_failure: always
on_failure: always
7 changes: 7 additions & 0 deletions finish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ then
ENV_ID=`curl -u ""$RANCHER_USER":"$RANCHER_PASS"" -X GET -H 'Accept: application/json' -H 'Content-Type: application/json' "http://rancher.flowz.com:8080/v2-beta/projects?name=Develop" | jq '.data[].id' | tr -d '"'`
echo $ENV_ID
}
elif [ "$TRAVIS_BRANCH" = "staging" ]
then
{
echo "call $TRAVIS_BRANCH branch"
ENV_ID=`curl -u ""$RANCHER_USER":"$RANCHER_PASS"" -X GET -H 'Accept: application/json' -H 'Content-Type: application/json' "http://rancher.flowz.com:8080/v2-beta/projects?name=Staging" | jq '.data[].id' | tr -d '"'`
echo $ENV_ID
}
else
{
echo "call $TRAVIS_BRANCH branch"
Expand Down
10 changes: 10 additions & 0 deletions upgrade.sh
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,16 @@ then
TAG="dev";
DOMAINKEY="$DOMAINKEY_DEVELOP";
}
elif [ "$TRAVIS_BRANCH" = "staging" ]
then
{
echo "call $TRAVIS_BRANCH branch"
ENV_ID=`curl -u ""$RANCHER_USER":"$RANCHER_PASS"" -X GET -H 'Accept: application/json' -H 'Content-Type: application/json' "http://rancher.flowz.com:8080/v2-beta/projects?name=Staging" | jq '.data[].id' | tr -d '"'`
echo $ENV_ID
USERNAME="$DOCKER_USERNAME";
TAG="staging";
DOMAINKEY="$DOMAINKEY_STAGING";
}
else
{
echo "call $TRAVIS_BRANCH branch"
Expand Down

0 comments on commit e4c0475

Please sign in to comment.