Skip to content

Commit

Permalink
regen manifest during release step (#1244)
Browse files Browse the repository at this point in the history
* regen manifest during release step
  • Loading branch information
mitchdraft authored and soloio-bulldozer[bot] committed Sep 20, 2019
1 parent 81c09ff commit 1539067
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,9 @@ steps:
waitFor: ['build-test-assets', 'get-credentials']
id: 'regression-tests-cluster-lock'

# 1) Run make targets to push docker images, compile manifests, produce release artifacts, deploy docs
# 2) Publish helm chart
# 1) Run make targets to push docker images
- name: 'gcr.io/$PROJECT_ID/go-make:0.1.12'
args: ['docker-push', 'manifest', 'upload-github-release-assets', 'push-docs']
args: ['docker-push']
env:
- 'DOCKER_CONFIG=/workspace/docker-config'
- 'TAGGED_VERSION=$TAG_NAME'
Expand All @@ -203,10 +202,21 @@ steps:
- 'HELM_HOME=/root/.helm' # tell helm where to find data
dir: './gopath/src/github.com/solo-io/gloo'
secretEnv: ['GITHUB_TOKEN']
id: 'release'
# wait for everything else to compelete.

# Sync helm chart data back to google storage bucket
id: 'release-images'
# 2) Publish helm chart, compile manifests, produce release artifacts, deploy docs
# isolating this portion of the release in order to force the manifest to be regenerated with the tagged version
- name: 'gcr.io/$PROJECT_ID/go-make:0.1.12'
args: ['manifest', 'upload-github-release-assets', 'push-docs', '-B']
env:
- 'DOCKER_CONFIG=/workspace/docker-config'
- 'TAGGED_VERSION=$TAG_NAME'
- 'PROJECT_ROOT=github.com/solo-io/gloo'
- 'GOPATH=/workspace/gopath'
- 'HELM_HOME=/root/.helm' # tell helm where to find data
dir: './gopath/src/github.com/solo-io/gloo'
secretEnv: ['GITHUB_TOKEN']
id: 'release-chart'
# 3) Sync helm chart data back to google storage bucket
- name: 'gcr.io/$PROJECT_ID/go-make:0.1.12'
args: ['save-helm']
env:
Expand Down

0 comments on commit 1539067

Please sign in to comment.