forked from GoogleCloudPlatform/llm-pipeline-examples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cloudbuild-nightly.yaml
116 lines (116 loc) · 3.4 KB
/
cloudbuild-nightly.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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
# Copyright 2022 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
steps:
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
script: |
# https://github.com/kyma-project/test-infra/issues/93#issuecomment-457263589
for i in $(gcloud compute os-login ssh-keys list | grep -v FINGERPRINT); do \
echo "Removing ssh key"; \
gcloud compute os-login ssh-keys remove --key $i || true; \
done
- name: gcr.io/cloud-builders/docker
args:
- pull
- 'gcr.io/llm-containers/deploy:latest'
- name: gcr.io/cloud-builders/docker
args:
- build
- '-t'
- 'gcr.io/llm-containers/deploy:github${SHORT_SHA}'
- '--cache-from'
- 'gcr.io/llm-containers/deploy:latest'
- '-f'
- docker/deploy.Dockerfile
- .
- name: gcr.io/cloud-builders/docker
args:
- push
- 'gcr.io/llm-containers/deploy:github${SHORT_SHA}'
- name: gcr.io/cloud-builders/docker
args:
- pull
- 'gcr.io/llm-containers/batch:latest'
- name: gcr.io/cloud-builders/docker
args:
- build
- '-t'
- 'gcr.io/llm-containers/batch:github${SHORT_SHA}'
- '--cache-from'
- 'gcr.io/llm-containers/batch:latest'
- '-f'
- docker/batch.Dockerfile
- .
- name: gcr.io/cloud-builders/docker
args:
- push
- 'gcr.io/llm-containers/batch:github${SHORT_SHA}'
- name: gcr.io/cloud-builders/docker
args:
- pull
- 'gcr.io/llm-containers/train:latest'
- name: gcr.io/cloud-builders/docker
args:
- build
- '-t'
- 'gcr.io/llm-containers/train:github${SHORT_SHA}'
- '--cache-from'
- 'gcr.io/llm-containers/train:latest'
- '-f'
- docker/train.Dockerfile
- .
- name: gcr.io/cloud-builders/docker
args:
- push
- 'gcr.io/llm-containers/train:github${SHORT_SHA}'
- name: gcr.io/cloud-builders/docker
args:
- pull
- 'gcr.io/llm-containers/predict:latest'
- name: gcr.io/cloud-builders/docker
args:
- build
- '-t'
- 'gcr.io/llm-containers/predict:github${SHORT_SHA}'
- '--cache-from'
- 'gcr.io/llm-containers/predict:latest'
- '-f'
- docker/predict.Dockerfile
- .
- name: gcr.io/cloud-builders/docker
args:
- push
- 'gcr.io/llm-containers/predict:github${SHORT_SHA}'
- name: gcr.io/cloud-builders/docker
args:
- build
- '-t'
- test_docker
- '-f'
- docker/test.Dockerfile
- .
- name: gcr.io/cloud-builders/docker
args:
- run
- '--network=cloudbuild'
- test_docker
- '--enable_caching=0'
- '--image_tag=github${SHORT_SHA}'
- '--project=$PROJECT_ID'
- '--pipeline_root=gs://t5-shared/pipeline_runs/'
- '--endpoint_name=t5-nightly'
- '--cleanup_endpoint'
timeout: 86400s
options:
pool:
name: projects/llm-containers/locations/us-central1/workerPools/deepspeed-build