Skip to content

Commit

Permalink
copy the envoy version by tag (#5)
Browse files Browse the repository at this point in the history
* copy the envoy version by tag

* seems to be working! add e flag just in case to catch errors

* x is to overbose
  • Loading branch information
yuval-k authored Jan 28, 2019
1 parent d4990ab commit b696ded
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ BUILDIFIER=$GOPATH/bin/buildifier CLANG_FORMAT=clang-format /path/to/envoy/tools
# Submit a build
```
gcloud builds submit --config=cloudbuild.yaml \
--substitutions=COMMIT_SHA=$(git rev-parse HEAD)-WIP .
--substitutions=COMMIT_SHA=$(git rev-parse HEAD) .
```
11 changes: 11 additions & 0 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,17 @@ steps:
- 'TAGGED_VERSION=$TAG_NAME'
secretEnv: ['DOCKER_HUB_PASSWORD']

- name: gcr.io/cloud-builders/gsutil
entrypoint: 'bash'
args:
- '-ec'
- |
if [ -z "$$TAGGED_VERSION" ]; then exit 0; fi
gsutil cp ./ci/envoy.stripped gs://solo-public-artifacts.solo.io/envoy/$${TAGGED_VERSION}/envoy.stripped
id: 'save-tagged-version'
env:
- 'TAGGED_VERSION=$TAG_NAME'

secrets:
- kmsKeyName: projects/solo-public/locations/global/keyRings/build/cryptoKeys/build-key
secretEnv:
Expand Down

0 comments on commit b696ded

Please sign in to comment.