Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.

Commit

Permalink
Add enx to deployment and promote (#590)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethvargo authored Sep 18, 2020
1 parent f53ba9a commit 19af389
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 0 deletions.
21 changes: 21 additions & 0 deletions builders/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,27 @@ steps:
waitFor:
- '-'

#
# enx-redirect
#
- id: 'deploy-enx-redirect'
name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:307.0.0-alpine'
args:
- 'bash'
- '-eEuo'
- 'pipefail'
- '-c'
- |-
gcloud run deploy "enx-redirect" \
--quiet \
--project "${PROJECT_ID}" \
--platform "managed" \
--region "${_REGION}" \
--image "gcr.io/${PROJECT_ID}/${_REPO}/enx-redirect:${_TAG}" \
--no-traffic
waitFor:
- '-'

#
# modeler
#
Expand Down
20 changes: 20 additions & 0 deletions builders/promote.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,26 @@ steps:
waitFor:
- '-'

#
# enx-redirect
#
- id: 'promote-enx-redirect'
name: 'gcr.io/google.com/cloudsdktool/cloud-sdk:307.0.0-alpine'
args:
- 'bash'
- '-eEuo'
- 'pipefail'
- '-c'
- |-
gcloud run services update-traffic "enx-redirect" \
--quiet \
--project "${PROJECT_ID}" \
--platform "managed" \
--region "${_REGION}" \
--to-revisions "${_REVISION}=${_PERCENTAGE}"
waitFor:
- '-'

#
# modeler
#
Expand Down

0 comments on commit 19af389

Please sign in to comment.