1
+ # Copyright 2025 Google LLC
2
+ #
3
+ # Licensed under the Apache License, Version 2.0 (the "License");
4
+ # you may not use this file except in compliance with the License.
5
+ # You may obtain a copy of the License at
6
+ #
7
+ # http://www.apache.org/licenses/LICENSE-2.0
8
+ #
9
+ # Unless required by applicable law or agreed to in writing, software
10
+ # distributed under the License is distributed on an "AS IS" BASIS,
11
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
+ # See the License for the specific language governing permissions and
13
+ # limitations under the License.
14
+
15
+ # note: /workspace is a special directory in the docker image where all the files in this folder
16
+ # get placed on your behalf
17
+
18
+ timeout : 7200s # 2 hours
19
+ steps :
20
+ # Attempt to pull the latest image to use as a cache source.
21
+ - name : gcr.io/cloud-builders/docker
22
+ entrypoint : ' bash'
23
+ args :
24
+ - -c
25
+ - |
26
+ docker pull us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-java:latest || exit 0
27
+ - name : gcr.io/cloud-builders/docker
28
+ args :
29
+ [
30
+ " build" ,
31
+ " --cache-from" ,
32
+ " us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-java:latest" ,
33
+ " -t" ,
34
+ " us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-java:latest" ,
35
+ " -f" ,
36
+ " Dockerfile" ,
37
+ " ." ,
38
+ ]
39
+ dir : internal/librariangen
40
+ options :
41
+ machineType : ' E2_HIGHCPU_8'
42
+ requestedVerifyOption : VERIFIED # For provenance attestation generation
43
+ logging : CLOUD_LOGGING_ONLY
44
+ images :
45
+ - us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-java:latest
0 commit comments