mirror of
https://github.com/sartography/cr-connect-db.git
synced 2025-02-17 09:16:39 +00:00
Constructs deploy path after deploy stage name is defined
This commit is contained in:
parent
0f826d67bb
commit
be325514f3
@ -13,12 +13,12 @@ function branch_to_deploy_stage () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
REPO="sartography/cr-connect-db"
|
REPO="sartography/cr-connect-db"
|
||||||
|
TAG=$(branch_to_tag "$TRAVIS_BRANCH")
|
||||||
|
COMMIT=${TRAVIS_COMMIT::8}
|
||||||
|
|
||||||
DEPLOY_APP="db"
|
DEPLOY_APP="db"
|
||||||
DEPLOY_GROUP=$(branch_to_deploy_group "$TRAVIS_BRANCH")
|
DEPLOY_GROUP=$(branch_to_deploy_group "$TRAVIS_BRANCH")
|
||||||
DEPLOY_STAGE=$(branch_to_deploy_stage "$TRAVIS_BRANCH")
|
DEPLOY_STAGE=$(branch_to_deploy_stage "$TRAVIS_BRANCH")
|
||||||
DEPLOY_PATH="$DEPLOY_GROUP/$DEPLOY_STAGE/$DEPLOY_APP"
|
|
||||||
TAG=$(branch_to_tag "$TRAVIS_BRANCH")
|
|
||||||
COMMIT=${TRAVIS_COMMIT::8}
|
|
||||||
|
|
||||||
if [ "$DEPLOY_GROUP" == "rrt" ]; then
|
if [ "$DEPLOY_GROUP" == "rrt" ]; then
|
||||||
IFS='/' read -ra ARR <<< "$TRAVIS_BRANCH" # Split branch on '/' character
|
IFS='/' read -ra ARR <<< "$TRAVIS_BRANCH" # Split branch on '/' character
|
||||||
@ -26,6 +26,7 @@ if [ "$DEPLOY_GROUP" == "rrt" ]; then
|
|||||||
DEPLOY_STAGE=$(branch_to_deploy_stage "${ARR[1]}")
|
DEPLOY_STAGE=$(branch_to_deploy_stage "${ARR[1]}")
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
DEPLOY_PATH="$DEPLOY_GROUP/$DEPLOY_STAGE/$DEPLOY_APP"
|
||||||
echo "REPO = $REPO"
|
echo "REPO = $REPO"
|
||||||
echo "TAG = $TAG"
|
echo "TAG = $TAG"
|
||||||
echo "COMMIT = $COMMIT"
|
echo "COMMIT = $COMMIT"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user