Skip to content

Commit e945da1

Browse files
authored
chore: migrate librarian to publish to new cloud-sdk-librarian-prod GCP project (#1805)
This additionally deprecates old AR exit gate cloud build file
1 parent 520967d commit e945da1

2 files changed

Lines changed: 27 additions & 2 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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+
- name: 'gcr.io/cloud-builders/docker'
23+
args: ['build', '-t', 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-dev/librarian', '.']
24+
images:
25+
- 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-dev/librarian'

cloudbuild-exitgate.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@
2020
# published to the 'images-prod' repository.
2121
steps:
2222
- name: 'gcr.io/cloud-builders/docker'
23-
args: ['build', '-t', 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-dev/librarian', '.']
23+
args: ['build', '-t', 'us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian', '.']
2424
images:
25-
- 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-dev/librarian'
25+
- 'us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian'

0 commit comments

Comments
 (0)