Skip to content

Commit ece4f31

Browse files
authored
chore(internal/librariangen): add Cloud Build trigger configuration for Dockerfile (googleapis#12679)
refs: #googleapis/librarian#1001
1 parent b3b8f70 commit ece4f31

File tree

2 files changed

+85
-0
lines changed

2 files changed

+85
-0
lines changed
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
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+
- name: gcr.io/cloud-builders/docker
21+
args:
22+
[
23+
"build",
24+
"-t",
25+
"us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-dev/librarian-go:infrastructure-public-image-$COMMIT_SHA",
26+
"-f",
27+
"Dockerfile",
28+
".",
29+
]
30+
dir: internal/librariangen
31+
- name: gcr.io/cloud-builders/docker
32+
args:
33+
[
34+
"tag",
35+
"us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-dev/librarian-go:infrastructure-public-image-$COMMIT_SHA",
36+
]
37+
options:
38+
machineType: 'E2_HIGHCPU_8'
39+
requestedVerifyOption: VERIFIED # For provenance attestation generation
40+
41+
images:
42+
- us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-dev/librarian-go:infrastructure-public-image-$COMMIT_SHA
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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+
- name: gcr.io/cloud-builders/docker
21+
args:
22+
[
23+
"build",
24+
"-t",
25+
"gcr.io/cloud-devrel-public-resources/librarian-go:infrastructure-public-image-$COMMIT_SHA",
26+
"-f",
27+
"Dockerfile",
28+
".",
29+
]
30+
dir: internal/librariangen
31+
- name: gcr.io/cloud-builders/docker
32+
args:
33+
[
34+
"tag",
35+
"gcr.io/cloud-devrel-public-resources/librarian-go:infrastructure-public-image-$COMMIT_SHA",
36+
"gcr.io/cloud-devrel-public-resources/librarian-go:infrastructure-public-image-latest",
37+
]
38+
options:
39+
logging: CLOUD_LOGGING_ONLY
40+
41+
images:
42+
- gcr.io/cloud-devrel-public-resources/librarian-go:infrastructure-public-image-$COMMIT_SHA
43+
- gcr.io/cloud-devrel-public-resources/librarian-go:infrastructure-public-image-latest

0 commit comments

Comments
 (0)