Skip to content

Commit

Permalink
update build
Browse files Browse the repository at this point in the history
  • Loading branch information
acoshift committed Aug 24, 2018
1 parent 0c29bb5 commit 6204875
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,15 @@ Acoshift's course system [acourse.io](https://acourse.io)

## Deployment

After GCB finished (and live in [staging](https://staging.acourse.io)), run `git push origin HEAD:production` to trigger production deployment.
After GCB finished

### [Staging](https://staging.acourse.io)

Run `git push origin HEAD:staging` to trigger staging deployment.

### Production

Run `git push origin HEAD:production` to trigger production deployment.

## Testing

Expand Down
2 changes: 1 addition & 1 deletion cloudbuild.deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
steps:
- name: gcr.io/cloud-builders/kubectl
args: [set, image, -n, $_NAMESPACE, deploy/$_DEPLOYMENT, acourse=gcr.io/$PROJECT_ID/acourse:$COMMIT_SHA]
args: [set, image, -n, $_NAMESPACE, $_RESOURCE, acourse=$_IMAGE:$COMMIT_SHA]
env:
- CLOUDSDK_COMPUTE_ZONE=$_CLOUDSDK_COMPUTE_ZONE
- CLOUDSDK_CONTAINER_CLUSTER=$_CLOUDSDK_CONTAINER_CLUSTER
8 changes: 0 additions & 8 deletions cloudbuild.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,6 @@ steps:

- name: gcr.io/cloud-builders/docker
args: [build, -t, gcr.io/$PROJECT_ID/acourse:$COMMIT_SHA, '.']
- name: gcr.io/cloud-builders/docker
args: [push, gcr.io/$PROJECT_ID/acourse:$COMMIT_SHA]

- name: gcr.io/cloud-builders/kubectl
args: [set, image, -n, $_NAMESPACE, deploy/$_DEPLOYMENT, acourse=gcr.io/$PROJECT_ID/acourse:$COMMIT_SHA]
env:
- CLOUDSDK_COMPUTE_ZONE=$_CLOUDSDK_COMPUTE_ZONE
- CLOUDSDK_CONTAINER_CLUSTER=$_CLOUDSDK_CONTAINER_CLUSTER

images:
- gcr.io/$PROJECT_ID/acourse:$COMMIT_SHA

0 comments on commit 6204875

Please sign in to comment.