forked from golang/pkgsite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
deploy.yaml
98 lines (97 loc) · 2.58 KB
/
deploy.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# Copyright 2020 The Go Authors. All rights reserved.
# Use of this source code is governed by a BSD-style
# license that can be found in the LICENSE file.
timeout: 45m
options:
machineType: N1_HIGHCPU_8
env:
# To prevent errors from tput when TERM is unset.
- TERM=dumb
steps:
- id: all.bash
name: gcr.io/$PROJECT_ID/docker-compose
entrypoint: devtools/docker/compose.sh
args:
- run
- allbash
- ci
- id: Prepare
name: gcr.io/cloud-builders/gcloud
entrypoint: deploy/prepare.sh
args:
- $PROJECT_ID
- id: Check redistributable
name: golang:1.17.3
entrypoint: private/devtools/check_redist.sh
- id: Build
name: gcr.io/cloud-builders/docker
entrypoint: sh
args:
- -c
- deploy/build.sh $PROJECT_ID $(cat _BUILD_TAG)
- id: Config - staging
name: gcr.io/cloud-builders/gsutil
entrypoint: deploy/config.sh
args:
- staging
- id: Worker - staging
name: gcr.io/cloud-builders/gke-deploy
entrypoint: sh
args:
- -c
- deploy/worker.sh staging gcr.io/$PROJECT_ID/worker:$(cat _BUILD_TAG)
- id: Frontend - staging
name: gcr.io/cloud-builders/gcloud
entrypoint: sh
args:
- -c
- deploy/frontend.sh staging gcr.io/$PROJECT_ID/frontend:$(cat _BUILD_TAG)
- id: Pagecheck - staging
name: golang:1.17.3
entrypoint: sh
args:
- -c
- private/devtools/pagecheck.sh -idtok $(cat _ID_TOKEN) staging
- id: e2e - staging
name: gcr.io/$PROJECT_ID/docker-compose
entrypoint: sh
args:
- -c
- deploy/e2e.sh staging $(cat _ID_TOKEN)
env:
- QUOTA_BYPASS=$_QUOTA_BYPASS
- id: Config - prod
name: gcr.io/cloud-builders/gsutil
entrypoint: deploy/config.sh
args:
- prod
- id: Worker - prod
name: gcr.io/cloud-builders/gke-deploy
entrypoint: sh
args:
- -c
- deploy/worker.sh prod gcr.io/$PROJECT_ID/worker:$(cat _BUILD_TAG)
- id: Frontend - prod
name: gcr.io/cloud-builders/gcloud
entrypoint: sh
args:
- -c
- deploy/frontend.sh prod gcr.io/$PROJECT_ID/frontend:$(cat _BUILD_TAG)
- id: Pagecheck - prod
name: golang:1.17.3
entrypoint: sh
args:
- -c
- private/devtools/pagecheck.sh -idtok $(cat _ID_TOKEN) prod
- id: Frontend - beta
name: gcr.io/cloud-builders/gcloud
entrypoint: sh
args:
- -c
- deploy/frontend.sh beta gcr.io/$PROJECT_ID/frontend:$(cat _BUILD_TAG)
- id: Pagecheck - beta
name: golang:1.17.3
entrypoint: sh
args:
- -c
- private/devtools/pagecheck.sh -idtok $(cat _ID_TOKEN) beta