Skip to content

Commit 7cb24f9

Browse files
authored
build: enable -push flag for GCB (#1752)
1 parent d40c87c commit 7cb24f9

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

infra/prod/generate.yaml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,22 @@ steps:
2222
- 'clone'
2323
- '--depth=1'
2424
- https://github.com/$_ORGANIZATION/$_REPOSITORY
25+
- name: gcr.io/cloud-builders/git
26+
id: configure-language-repo-name
27+
waitFor: ['clone-language-repo']
28+
dir: /workspace/$_REPOSITORY
29+
args:
30+
- 'config'
31+
- 'user.name'
32+
- 'Cloud SDK Librarian'
33+
- name: gcr.io/cloud-builders/git
34+
id: configure-language-repo-email
35+
waitFor: ['configure-language-repo-name']
36+
dir: /workspace/$_REPOSITORY
37+
args:
38+
- 'config'
39+
- 'user.email'
40+
2541
- name: gcr.io/cloud-builders/git
2642
id: clone-googleapis
2743
waitFor: ['-']
@@ -30,9 +46,9 @@ steps:
3046
- '--single-branch'
3147
- '--branch=master'
3248
- https://github.com/googleapis/googleapis
33-
- name: 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-prod/librarian@sha256:dac8d6d46eefecde4241c88348315e6162ccd0d39e84db2b98e4da7393f65c29'
49+
- name: 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-prod/librarian@sha256:fd5a83ab38e775ccf7f8431f97050c12c1cad2490d5ca8f80a456e9f87fc88e1'
3450
id: generate
35-
waitFor: ['clone-language-repo', 'clone-googleapis']
51+
waitFor: ['configure-language-repo-email', 'clone-googleapis']
3652
args:
3753
- 'generate'
3854
- '-repo'

infra/prod/publish-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ steps:
2626
- '--single-branch'
2727
- '--branch=$_BRANCH'
2828
- https://github.com/googleapis/$_REPOSITORY
29-
- name: 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-prod/librarian@sha256:dac8d6d46eefecde4241c88348315e6162ccd0d39e84db2b98e4da7393f65c29'
29+
- name: 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-prod/librarian@sha256:fd5a83ab38e775ccf7f8431f97050c12c1cad2490d5ca8f80a456e9f87fc88e1'
3030
id: publish-release
3131
waitFor: ['clone-language-repo']
3232
args:

infra/prod/stage-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ steps:
3232
- '--single-branch'
3333
- '--branch=master'
3434
- https://github.com/googleapis/googleapis
35-
- name: 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-prod/librarian@sha256:dac8d6d46eefecde4241c88348315e6162ccd0d39e84db2b98e4da7393f65c29'
35+
- name: 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-prod/librarian@sha256:fd5a83ab38e775ccf7f8431f97050c12c1cad2490d5ca8f80a456e9f87fc88e1'
3636
id: stage-release
3737
waitFor: ['clone-language-repo', 'clone-googleapis']
3838
args:

0 commit comments

Comments
 (0)