зеркало из https://github.com/golang/playground.git
deploy: add triggers for the goprev playground
Change-Id: Icf535d55b2ab042e4badf8b41042c1e3a1480906 Reviewed-on: https://go-review.googlesource.com/c/playground/+/395034 Trust: Robert Findley <rfindley@google.com> Run-TryBot: Robert Findley <rfindley@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org>
This commit is contained in:
Родитель
6aeb6d3e9f
Коммит
60559de821
4
Makefile
4
Makefile
|
@ -34,12 +34,16 @@ export GOTIP_MESSAGE
|
|||
|
||||
push-cloudbuild-triggers:
|
||||
gcloud beta builds triggers import --project golang-org --source deploy/go_trigger.yaml
|
||||
gcloud beta builds triggers import --project golang-org --source deploy/go_goprev_trigger.yaml
|
||||
gcloud beta builds triggers import --project golang-org --source deploy/playground_trigger.yaml
|
||||
gcloud beta builds triggers import --project golang-org --source deploy/playground_goprev_trigger.yaml
|
||||
gcloud alpha builds triggers import --project golang-org --source deploy/gotip_scheduled_trigger.yaml
|
||||
@echo "$$GOTIP_MESSAGE"
|
||||
|
||||
pull-cloudbuild-triggers:
|
||||
gcloud beta builds triggers export --project golang-org playground-redeploy-go-release --destination deploy/go_trigger.yaml
|
||||
gcloud beta builds triggers export --project golang-org playground-redeploy-goprev-go-release --destination deploy/go_goprev_trigger.yaml
|
||||
gcloud beta builds triggers export --project golang-org playground-redeploy-playground --destination deploy/playground_trigger.yaml
|
||||
gcloud beta builds triggers export --project golang-org playground-redeploy-goprev-playground --destination deploy/playground_goprev_trigger.yaml
|
||||
gcloud alpha builds triggers export --project golang-org playground-deploy-gotip-playground --destination deploy/gotip_scheduled_trigger.yaml
|
||||
gcloud scheduler --project=golang-org jobs describe --format=yaml playground-deploy-gotip-playground-schedule > deploy/gotip_schedule.yaml
|
||||
|
|
|
@ -35,7 +35,7 @@ For details, see [deploy/go_trigger.yaml](deploy/go_trigger.yaml),
|
|||
and [deploy/deploy.json](deploy/deploy.json).
|
||||
|
||||
Changes to the trigger configuration can be made to the YAML files, or in the GCP UI, which should be kept in sync
|
||||
using the `push-cloudbuild-trigger` and `pull-cloudbuild-trigger` make targets.
|
||||
using the `push-cloudbuild-triggers` and `pull-cloudbuild-triggers` make targets.
|
||||
|
||||
### Deploy via Cloud Build
|
||||
|
||||
|
|
|
@ -37,5 +37,8 @@
|
|||
]
|
||||
}
|
||||
],
|
||||
"timeout": "3600s"
|
||||
"timeout": "3600s",
|
||||
"options": {
|
||||
"machineType": "N1_HIGHCPU_8"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
build:
|
||||
steps:
|
||||
- args:
|
||||
- clone
|
||||
- --depth
|
||||
- '1'
|
||||
- https://go.googlesource.com/playground
|
||||
name: gcr.io/cloud-builders/git
|
||||
- args:
|
||||
- builds
|
||||
- submit
|
||||
- --async
|
||||
- --config
|
||||
- deploy/deploy_goprev.json
|
||||
- .
|
||||
dir: playground
|
||||
name: gcr.io/cloud-builders/gcloud
|
||||
createTime: '2022-03-23T14:26:03.683560061Z'
|
||||
description: Redeploy the goprev playground on new tagged Go release
|
||||
id: 652aa58f-6376-4a89-a881-e5b0ed2ddbba
|
||||
name: playground-redeploy-goprev-go-release
|
||||
triggerTemplate:
|
||||
projectId: golang-org
|
||||
repoName: go
|
||||
tagName: ^go[0-9](\.[0-9]+)+$
|
|
@ -10,10 +10,11 @@ httpTarget:
|
|||
scope: https://www.googleapis.com/auth/cloud-platform
|
||||
serviceAccountEmail: cloud-build-trigger-scheduler@golang-org.iam.gserviceaccount.com
|
||||
uri: https://cloudbuild.googleapis.com/v1/projects/golang-org/triggers/b30b6980-4b88-4c10-91d4-5705c793fa1b:run
|
||||
lastAttemptTime: '2021-11-23T16:22:00.122806Z'
|
||||
lastAttemptTime: '2022-03-23T14:00:00.657383Z'
|
||||
name: projects/golang-org/locations/us-central1/jobs/playground-deploy-gotip-playground-schedule
|
||||
schedule: 0 10 * * *
|
||||
scheduleTime: '2021-11-24T15:00:00Z'
|
||||
scheduleTime: '2022-03-24T14:00:00.140242Z'
|
||||
state: ENABLED
|
||||
status: {}
|
||||
timeZone: America/New_York
|
||||
userUpdateTime: '2021-11-23T16:27:07Z'
|
||||
|
|
|
@ -0,0 +1,9 @@
|
|||
createTime: '2022-03-23T14:30:37.556961257Z'
|
||||
description: Redeploy the goprev playground on x/playground commit
|
||||
filename: deploy/deploy_goprev.json
|
||||
id: 4964e99e-4472-4279-8b92-244cbc5e2cd6
|
||||
name: playground-redeploy-goprev-playground
|
||||
triggerTemplate:
|
||||
branchName: ^master$
|
||||
projectId: golang-org
|
||||
repoName: playground
|
Загрузка…
Ссылка в новой задаче