Skip to content

Commit 4e6e92b

Browse files
authored
chore: Fix exitgate GCB configuration (#12806)
* chore: update cloudbuild-exitgate.yaml to use latest tag * chore: add logging * chore: removed extra tags
1 parent 10e67ef commit 4e6e92b

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

internal/librariangen/cloudbuild-exitgate.yaml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -23,34 +23,24 @@ steps:
2323
args:
2424
- -c
2525
- |
26-
docker pull us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:infrastructure-public-image-latest || exit 0
26+
docker pull us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:latest || exit 0
2727
- name: gcr.io/cloud-builders/docker
2828
args:
2929
[
3030
"build",
3131
"--cache-from",
32-
"us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:infrastructure-public-image-latest",
32+
"us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:latest",
3333
"-t",
34-
"us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:infrastructure-public-image-$COMMIT_SHA",
34+
"us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:latest",
3535
"-f",
3636
"Dockerfile",
3737
".",
3838
]
3939
dir: internal/librariangen
40-
- name: gcr.io/cloud-builders/docker
41-
args:
42-
[
43-
"tag",
44-
"us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:infrastructure-public-image-$COMMIT_SHA",
45-
"us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:infrastructure-public-image-latest",
46-
"us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:latest",
47-
]
4840
options:
4941
machineType: 'E2_HIGHCPU_8'
5042
requestedVerifyOption: VERIFIED # For provenance attestation generation
51-
43+
logging: CLOUD_LOGGING_ONLY
5244
images:
53-
- us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:infrastructure-public-image-$COMMIT_SHA
54-
- us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:infrastructure-public-image-latest
5545
- us-central1-docker.pkg.dev/cloud-sdk-librarian-prod/images-dev/librarian-go:latest
5646

0 commit comments

Comments
 (0)