Skip to content

Commit 2cda4a5

Browse files
committed
create writable dir
1 parent db3cfb5 commit 2cda4a5

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

cloudbuild-test.yaml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,18 @@ steps:
3838
args: ['clone', '--depth', '1', 'https://github.com/googleapis/googleapis.git', '/workspace/googleapis']
3939
waitFor: ['-']
4040

41+
# Step 3: Prepare a writable directory for I/O.
42+
# This step creates a new directory and copies the input file into it.
43+
- name: 'alpine'
44+
id: 'prepare-io-dir'
45+
args:
46+
- 'sh'
47+
- '-c'
48+
- |
49+
mkdir -p /workspace/librarian-io && \
50+
cp /workspace/.generator/test-resources/generate-request.json /workspace/librarian-io/
51+
waitFor: ['-']
52+
4153
# Step 3: Run the generator to generate the library code.
4254
- name: 'gcr.io/cloud-builders/docker'
4355
id: 'generate-library'
@@ -49,7 +61,7 @@ steps:
4961
- '/workspace/googleapis:/app/source'
5062
# Mount the generate-request.json from this repo's workspace.
5163
- '-v'
52-
- '/workspace/.generator/test-resources:/app/librarian'
64+
- '/workspace/librarian-io:/app/librarian'
5365
# Mount the generator-input from this repo's workspace.
5466
- '-v'
5567
- '/workspace/.librarian/generator-input:/app/input'

0 commit comments

Comments
 (0)