Skip to content
This repository has been archived by the owner on Jun 25, 2019. It is now read-only.

Fix region problem #14

Merged
merged 1 commit into from
May 21, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .bluemix/pipeline.sh
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ else
export SERVICE_INSTANCE_NAME="blockchain-${CF_APP}"
fi
printf "Using service instance name '${SERVICE_INSTANCE_NAME}'\n"
printf "Deploying in region: ${CLOUD_REGION_ID}"

# -----------------------------------------------------------
# 1. Test if everything we need is set
Expand Down
9 changes: 6 additions & 3 deletions .bluemix/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@ stages:
- name: SAMPLE_REPO
value: '{{SAMPLE_REPO}}'
type: text
- name: CLOUD_REGION_ID
value: '{{tc_region}}'
type: text
jobs:
- name: deploy-vehicle-manufacture-app
type: deployer
target:
region_id: ${PROD_REGION_ID}
organization: ${PROD_ORG_NAME}
space: ${PROD_SPACE_NAME}
region_id: '{{tc_region}}'
organization: '{{org_name}}'
space: '{{space_name}}'
application: ${CF_APP_NAME}
script: |
#!/bin/bash
Expand Down
6 changes: 3 additions & 3 deletions .bluemix/toolchain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ services:
SIN: 'testing'
SAMPLE_REPO: vehicle-repo
CF_APP_NAME: '{{form.pipeline.parameters.prod-app-name}}'
PROD_SPACE_NAME: '{{form.pipeline.parameters.prod-space}}'
PROD_ORG_NAME: '{{form.pipeline.parameters.prod-organization}}'
PROD_REGION_ID: '{{form.pipeline.parameters.prod-region}}'
#PROD_SPACE_NAME: '{{form.pipeline.parameters.prod-space}}'
#PROD_ORG_NAME: '{{form.pipeline.parameters.prod-organization}}'
#PROD_REGION_ID: '{{form.pipeline.parameters.prod-region}}'
execute: true
vehicle-app:
service_id: customtool
Expand Down