File tree Expand file tree Collapse file tree 3 files changed +67
-1
lines changed Expand file tree Collapse file tree 3 files changed +67
-1
lines changed Original file line number Diff line number Diff line change 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+ # This Cloud Build configuration is used by a Louhi flow for the Artifact
15+ # Registry (AR) Exit Gate process (go/cloud-sdk-ar-exit-gate-onboarding).
16+ #
17+ # This build step creates the librarian container image and publishes it to the
18+ # 'images-dev' repository, which serves as the entry point for the AR Exit Gate.
19+ # After passing the gate's security checks, the image is promoted and
20+ # published to the 'images-prod' repository.
21+ steps :
22+ - id : build-dispatcher
23+ name : ' gcr.io/cloud-builders/docker'
24+ waitFor : ['-']
25+ args :
26+ - ' build'
27+ - ' -t'
28+ - ' us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-dispatcher'
29+ - ' .'
30+ - ' -f'
31+ - ' infra/dispatcher/Dockerfile'
32+ images :
33+ - ' us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-dispatcher'
Original file line number Diff line number Diff line change 2222# Local test:
2323# gcloud --project=<my-project> builds submit . --config=cloudbuild-test.yaml
2424steps :
25- - name : ' gcr.io/cloud-builders/docker'
25+ - id : ' build'
26+ name : ' gcr.io/cloud-builders/docker'
2627 waitFor : ['-']
2728 args :
2829 - ' build'
@@ -31,9 +32,20 @@ steps:
3132 - ' .'
3233 - id : structure-test
3334 name : gcr.io/gcp-runtimes/structure_test
35+ waitFor : ['build']
3436 args :
3537 - ' -i'
3638 - ' us-central1-docker.pkg.dev/$PROJECT_ID/librarian'
3739 - ' --config'
3840 - ' /workspace/container-structure-test.yaml'
3941 - ' -v'
42+ - id : ' build-dispatcher'
43+ name : ' gcr.io/cloud-builders/docker'
44+ waitFor : ['-']
45+ args :
46+ - ' build'
47+ - ' -t'
48+ - ' us-central1-docker.pkg.dev/$PROJECT_ID/librarian-dispatcher'
49+ - ' .'
50+ - ' -f'
51+ - ' infra/dispatcher/Dockerfile'
Original file line number Diff line number Diff line change 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+ FROM golang:1.25.0
15+
16+ WORKDIR /app
17+
18+ ADD . /app
19+ RUN go build ./...
20+
21+ ENTRYPOINT [ "go" ]
You can’t perform that action at this time.
0 commit comments