Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Use rudder for deploy related functionality. (#211)
Browse files Browse the repository at this point in the history
* Use rudder for deploy related functionality.

This ensures that the application is deployed to the latest n'
greatest skiff cluster.

* Use the right image path.
  • Loading branch information
codeviking authored Jun 13, 2019
1 parent 3a3740e commit ce7aab9
Show file tree
Hide file tree
Showing 2 changed files with 3,244 additions and 31 deletions.
34 changes: 3 additions & 31 deletions .skiff/cloudbuild-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,42 +43,14 @@ steps:
'./webapp.jsonnet'
]
dir: '.skiff'
# Extract the deployment definition, which we need in order to query the
# state of the deployment, so that we can block till it's complete.
- id: 'extract-deployment-config'
name: 'gcr.io/ai2-reviz/rudder'
args: [
'get',
'-f', './webapp.json',
'-k', 'deployment',
'-o', './deployment.json'
]
dir: '.skiff'
# Deploy the image to Kubernetes
- id: 'deploy'
name: 'gcr.io/cloud-builders/kubectl'
name: 'gcr.io/ai2-reviz/rudder'
args: [
'apply',
'deploy',
'-f',
'webapp.json'
]
env: [
'CLOUDSDK_COMPUTE_ZONE=us-west1',
'CLOUDSDK_CONTAINER_CLUSTER=skiff-prod'
]
dir: '.skiff'
# Block until the deploy is complete. If this step fails your deployment
# failed.
- id: 'wait-for-deploy'
name: 'gcr.io/cloud-builders/kubectl'
args: [
'rollout', 'status',
'-f', 'deployment.json'
]
env: [
'CLOUDSDK_COMPUTE_ZONE=us-west1',
'CLOUDSDK_CONTAINER_CLUSTER=skiff-prod'
]
dir: '.skiff'
substitutions:
_ENV: staging
Expand All @@ -88,5 +60,5 @@ images: [
]
artifacts:
objects:
location: 'gs://skiff-archive/$REPO_NAME/$_ENV/$COMMIT_SHA'
location: 'gs://skiff-archive/$REPO_NAME/$_ENV/$COMMIT_SHA/$BUILD_ID'
paths: ['.skiff/webapp.json']
Loading

0 comments on commit ce7aab9

Please sign in to comment.