Skip to content
This repository has been archived by the owner on Mar 13, 2021. It is now read-only.

Commit

Permalink
Publish application build template
Browse files Browse the repository at this point in the history
as gs://projectriff/riff-buildtemplate/riff-app-cnb-clusterbuildtemplate.yaml
  • Loading branch information
scothis committed May 20, 2019
1 parent 5760af1 commit 6849ead
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .travis/push-buildtemplate-to-gcs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,15 @@ CI_TAG="${version}-ci-${id}"

gcloud auth activate-service-account --key-file <(echo $GCLOUD_CLIENT_SECRET | base64 --decode)

# function build template
sed "s|projectriff/builder:latest|projectriff/builder:${CI_TAG}|" riff-cnb-clusterbuildtemplate.yaml > riff-cnb-clusterbuildtemplate-${CI_TAG}.yaml
sed "s|projectriff/builder:latest|projectriff/builder:${version}|" riff-cnb-clusterbuildtemplate.yaml > riff-cnb-clusterbuildtemplate-${version}.yaml

gsutil cp -a public-read riff-cnb-clusterbuildtemplate-${CI_TAG}.yaml gs://projectriff/riff-buildtemplate/
gsutil cp -a public-read riff-cnb-clusterbuildtemplate-${version}.yaml gs://projectriff/riff-buildtemplate/
gsutil cp -a public-read riff-cnb-clusterbuildtemplate-${CI_TAG}.yaml gs://projectriff/riff-buildtemplate/riff-cnb-clusterbuildtemplate.yaml

# application build template
gsutil cp -a public-read riff-app-cnb-clusterbuildtemplate.yaml gs://projectriff/riff-buildtemplate/riff-app-cnb-clusterbuildtemplate-${CI_TAG}.yaml
gsutil cp -a public-read riff-app-cnb-clusterbuildtemplate.yaml gs://projectriff/riff-buildtemplate/riff-app-cnb-clusterbuildtemplate-${version}.yaml
gsutil cp -a public-read riff-app-cnb-clusterbuildtemplate.yaml gs://projectriff/riff-buildtemplate/riff-app-cnb-clusterbuildtemplate.yaml
File renamed without changes.

0 comments on commit 6849ead

Please sign in to comment.