-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcloudbuild.yaml
70 lines (66 loc) · 2.27 KB
/
cloudbuild.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
steps:
# use old image version as cache
- name: "gcr.io/cloud-builders/docker"
entrypoint: "bash"
args:
[
"-c",
"docker pull us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform:latest || exit 0",
]
- name: "gcr.io/cloud-builders/docker"
entrypoint: "bash"
args:
[
"-c",
"docker pull us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform-build-layer:latest || exit 0",
]
- name: "gcr.io/cloud-builders/docker"
args:
- "build"
- "--cache-from"
- "us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform-build-layer:latest"
- "-f"
- "Dockerfile-build"
- "-t"
- "us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform-build-layer"
- "-t"
- "lactf-platform-build-layer"
- "."
- name: "gcr.io/cloud-builders/docker"
args:
- "build"
- "--cache-from"
- "us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform:latest"
- "-f"
- "Dockerfile-run"
- "-t"
- "us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform"
- "."
- name: "gcr.io/cloud-builders/docker"
args:
[
"push",
"us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform-build-layer:latest",
]
- name: "gcr.io/cloud-builders/docker"
args:
[
"push",
"us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform:latest",
]
- name: "gcr.io/google.com/cloudsdktool/cloud-sdk"
entrypoint: gcloud
# NOTE: lactf-platform-worker does not get auto-deployed, manually redeploy if needed
args:
- "run"
- "deploy"
- "lactf-platform"
- "--image=us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform:latest"
- "--region=us-west1"
- "--set-secrets=/app/conf.d/private/01-private.yaml=rctf-config:latest"
- "--tag=staging"
images:
- "us-west1-docker.pkg.dev/$PROJECT_ID/lactf-infra/lactf-platform:latest"
logsBucket: 'gs://la-ctf_cloudbuild'
options:
logging: GCS_ONLY