Skip to content

Commit

Permalink
Allow selection of channel for builder pacakges
Browse files Browse the repository at this point in the history
Signed-off-by: Graham Weldon <graham@grahamweldon.com>
  • Loading branch information
predominant committed Feb 22, 2018
1 parent 11537e2 commit 61d49e5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
3 changes: 2 additions & 1 deletion bldr.env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ export GITHUB_API_URL=https://api.github.com
export GITHUB_WEB_URL=https://github.com
export GITHUB_CLIENT_ID=Iv1.04b78696442708f6
export GITHUB_CLIENT_SECRET=b4acf029896e9c7fb6613390124e8ae3c35889aa
export GITHUB_APP_ID=8053
export GITHUB_APP_ID=8053
export BLDR_CHANNEL=stable
12 changes: 6 additions & 6 deletions scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -348,27 +348,27 @@ EOT
}

start-api() {
hab svc load habitat/builder-api --bind router:builder-router.default --force
hab svc load habitat/builder-api --bind router:builder-router.default --channel "${BLDR_CHANNEL}" --force
}

start-api-proxy() {
hab svc load habitat/builder-api-proxy --bind http:builder-api.default --force
hab svc load habitat/builder-api-proxy --bind http:builder-api.default --channel "${BLDR_CHANNEL}" --force
}

start-datastore() {
hab svc load habitat/builder-datastore --force
hab svc load habitat/builder-datastore --channel "${BLDR_CHANNEL}" --force
}

start-originsrv() {
hab svc load habitat/builder-originsrv --bind router:builder-router.default --bind datastore:builder-datastore.default --force
hab svc load habitat/builder-originsrv --bind router:builder-router.default --bind datastore:builder-datastore.default --channel "${BLDR_CHANNEL}" --force
}

start-router() {
hab svc load habitat/builder-router --force
hab svc load habitat/builder-router --channel "${BLDR_CHANNEL}" --force
}

start-sessionsrv() {
hab svc load habitat/builder-sessionsrv --bind router:builder-router.default --bind datastore:builder-datastore.default --force
hab svc load habitat/builder-sessionsrv --bind router:builder-router.default --bind datastore:builder-datastore.default --channel "${BLDR_CHANNEL}" --force
}

generate_bldr_keys() {
Expand Down

0 comments on commit 61d49e5

Please # to comment.