Skip to content

Commit

Permalink
restore cb order (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchdraft authored and yuval-k committed May 9, 2019
1 parent 594b378 commit 4fb80e2
Showing 1 changed file with 5 additions and 46 deletions.
51 changes: 5 additions & 46 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,45 +66,18 @@ steps:
waitFor: ['-']
id: 'docker-login'

# Build extension and squashctl

- name: 'gcr.io/$PROJECT_ID/go-vsce:0.1.4'
entrypoint: make
args: ['package-extension']
env:
- 'TAGGED_VERSION=$TAG_NAME'
- 'BUILD_ID=$BUILD_ID'
- 'PROJECT_ROOT=github.com/solo-io/squash'
- 'GOPATH=/workspace/gopath'
dir: './gopath/src/github.com/solo-io/squash'
waitFor: ['dep']
id: 'extension-build'

- name: 'gcr.io/$PROJECT_ID/go-make'
args: ['squashctl']
env:
- 'PROJECT_ROOT=github.com/solo-io/squash'
- 'GOPATH=/workspace/gopath'
- 'TAGGED_VERSION=$TAG_NAME'
- 'BUILD_ID=$BUILD_ID'
- 'GCLOUD_PROJECT_ID=$PROJECT_ID'
dir: './gopath/src/github.com/solo-io/squash'
waitFor: ['dep']
id: 'build-squashctl'

# publish containers for test \ release

- name: 'gcr.io/$PROJECT_ID/go-make'
args: ['docker-push']
args: ['docker-push', 'upload-github-release-assets', 'push-docs']
env:
- 'PROJECT_ROOT=github.com/solo-io/squash'
- 'GOPATH=/workspace/gopath'
- 'TAGGED_VERSION=$TAG_NAME'
- 'BUILD_ID=$BUILD_ID'
- 'GCLOUD_PROJECT_ID=$PROJECT_ID'
dir: './gopath/src/github.com/solo-io/squash'
secretEnv: ['GITHUB_TOKEN']
waitFor: ['docker-login', 'dep', 'check-code-and-docs-gen']
id: 'push-docker-resources'
id: 'push-github-resources'

- name: 'gcr.io/$PROJECT_ID/e2e-ginkgo'
env:
Expand All @@ -118,23 +91,9 @@ steps:
- 'DOCKER_CONFIG=/workspace/.docker/'
dir: './gopath/src/github.com/solo-io/squash'
args: ['-r', '-failFast', '-p']
waitFor: ['get-creds', 'check-code-and-docs-gen', 'push-docker-resources']
waitFor: ['get-creds', 'check-code-and-docs-gen', 'push-github-resources']
id: 'e2e-test'

# Publish everything
- name: 'gcr.io/$PROJECT_ID/go-make'
args: ['upload-github-release-assets', 'push-docs']
env:
- 'PROJECT_ROOT=github.com/solo-io/squash'
- 'GOPATH=/workspace/gopath'
- 'TAGGED_VERSION=$TAG_NAME'
- 'BUILD_ID=$BUILD_ID'
- 'GCLOUD_PROJECT_ID=$PROJECT_ID'
dir: './gopath/src/github.com/solo-io/squash'
secretEnv: ['GITHUB_TOKEN']
waitFor: ['e2e-test', 'push-docker-resources']
id: 'push-github-resources'

- name: 'gcr.io/$PROJECT_ID/go-vsce:0.1.4'
entrypoint: make
args: ['publish-extension']
Expand All @@ -145,7 +104,7 @@ steps:
- 'GOPATH=/workspace/gopath'
dir: './gopath/src/github.com/solo-io/squash'
secretEnv: ['VSCODE_TOKEN']
waitFor: ['push-github-resources']
waitFor: ['e2e-test','push-github-resources']
id: 'extension'

secrets:
Expand Down

0 comments on commit 4fb80e2

Please sign in to comment.