Skip to content

Commit 96b73c5

Browse files
authored
fix: specify output directory so librarian builds have access to files created (#1798)
This is to fix the issue that we weren't able to see the contents of the output directory when created directly by librarian. This also adds the push command to the stage-release build
1 parent 045fbf5 commit 96b73c5

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

infra/prod/generate.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ steps:
4949
- name: 'us-central1-docker.pkg.dev/cloud-sdk-production-pipeline/images-prod/librarian@sha256:fd5a83ab38e775ccf7f8431f97050c12c1cad2490d5ca8f80a456e9f87fc88e1'
5050
id: generate
5151
waitFor: ['configure-language-repo-email', 'clone-googleapis']
52+
dir: tmp
5253
args:
5354
- 'generate'
5455
- '-repo'
@@ -57,6 +58,8 @@ steps:
5758
- $_LIBRARY_ID
5859
- '-api-source'
5960
- '/workspace/googleapis'
61+
- '-output'
62+
- /workspace/tmp
6063
- '-push=$_PUSH'
6164
secretEnv: ['LIBRARIAN_GITHUB_TOKEN']
6265
tags: ['generate-$_REPOSITORY']

infra/prod/stage-release.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ steps:
3535
- 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']
38+
dir: tmp
3839
args:
3940
- 'release init'
4041
- '-repo'
@@ -43,6 +44,9 @@ steps:
4344
- $_LIBRARY_ID
4445
- '-api-source'
4546
- '/workspace/googleapis'
47+
- '-output'
48+
- /workspace/tmp
49+
- '-push=$_PUSH'
4650
secretEnv: ['LIBRARIAN_GITHUB_TOKEN']
4751
tags: ['stage-release-$_REPOSITORY']
4852
availableSecrets:

0 commit comments

Comments
 (0)