Skip to content

Commit

Permalink
prefix and manifest are linked. if we want to use a prefix for servic…
Browse files Browse the repository at this point in the history
…es, then a custom manifest is needed so set the two together.

IBM-Cloud/insurance-bot#15
  • Loading branch information
Frederic Lavigne committed Jan 12, 2017
1 parent 3d433cb commit bba87ae
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 36 deletions.
12 changes: 3 additions & 9 deletions .bluemix/catalog-api.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,13 @@ stages:
# The branch may use a custom manifest
MANIFEST=manifest.yml
PREFIX=""
if [ -f ${REPO_BRANCH}-manifest.yml ]; then
MANIFEST=${REPO_BRANCH}-manifest.yml
fi
echo "Using manifest file: $MANIFEST"
# and a prefix for services if not building the master branch
if [ "$REPO_BRANCH" == "master" ]; then
echo "No prefix for master branch"
PREFIX=""
else
PREFIX=$REPO_BRANCH"-"
echo "Using prefix: $PREFIX"
fi
echo "Using manifest file: $MANIFEST"
echo "Using prefix: $PREFIX"
# Create CF services
cf create-service cloudantNoSQLDB Lite ${PREFIX}insurance-policy-db
Expand Down
11 changes: 2 additions & 9 deletions .bluemix/dashboard.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,17 +62,10 @@ stages:
MANIFEST=manifest.yml
if [ -f ${REPO_BRANCH}-manifest.yml ]; then
MANIFEST=${REPO_BRANCH}-manifest.yml
fi
echo "Using manifest file: $MANIFEST"
# and a prefix for services if not building the master branch
if [ "$REPO_BRANCH" == "master" ]; then
echo "No prefix for master branch"
PREFIX=""
else
PREFIX=$REPO_BRANCH"-"
echo "Using prefix: $PREFIX"
fi
echo "Using manifest file: $MANIFEST"
echo "Using prefix: $PREFIX"
# Create CF services
cf create-service cloudantNoSQLDB Lite ${PREFIX}insurance-bot-db
Expand Down
12 changes: 3 additions & 9 deletions .bluemix/order-api.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,19 +37,13 @@ stages:
# The branch may use a custom manifest
MANIFEST=manifest.yml
PREFIX=""
if [ -f ${REPO_BRANCH}-manifest.yml ]; then
MANIFEST=${REPO_BRANCH}-manifest.yml
fi
echo "Using manifest file: $MANIFEST"
# and a prefix for services if not building the master branch
if [ "$REPO_BRANCH" == "master" ]; then
echo "No prefix for master branch"
PREFIX=""
else
PREFIX=$REPO_BRANCH"-"
echo "Using prefix: $PREFIX"
fi
echo "Using manifest file: $MANIFEST"
echo "Using prefix: $PREFIX"
# Create CF services
cf create-service cloudantNoSQLDB Lite ${PREFIX}insurance-policy-db
Expand Down
12 changes: 3 additions & 9 deletions .bluemix/ui.pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,19 +41,13 @@ stages:
# The branch may use a custom manifest
MANIFEST=manifest.yml
PREFIX=""
if [ -f ${REPO_BRANCH}-manifest.yml ]; then
MANIFEST=${REPO_BRANCH}-manifest.yml
fi
echo "Using manifest file: $MANIFEST"
# and a prefix for services if not building the master branch
if [ "$REPO_BRANCH" == "master" ]; then
echo "No prefix for master branch"
PREFIX=""
else
PREFIX=$REPO_BRANCH"-"
echo "Using prefix: $PREFIX"
fi
echo "Using manifest file: $MANIFEST"
echo "Using prefix: $PREFIX"
# Create CF services
cf create-service conversation standard insurance-bot-conversation
Expand Down

0 comments on commit bba87ae

Please sign in to comment.