Commit 50e12c7 1 parent f7fe0a6 commit 50e12c7 Copy full SHA for 50e12c7
File tree 1 file changed +55
-1
lines changed
.cloudbuild/library_generation
1 file changed +55
-1
lines changed Original file line number Diff line number Diff line change 27
27
waitFor : ["-"]
28
28
env :
29
29
- " DOCKER_BUILDKIT=1"
30
+
30
31
- name : ubuntu:24.04
31
32
entrypoint : bash
32
33
args :
@@ -36,9 +37,10 @@ steps:
36
37
cd /workspace
37
38
git clone https://github.com/googleapis/googleapis
38
39
cd googleapis
39
- git switch 113a378d5aad5018876ec0a8cbfd4d6a4f746809
40
+ git checkout 113a378d5aad5018876ec0a8cbfd4d6a4f746809
40
41
id : download-api-definitions
41
42
waitFor : ["-"]
43
+
42
44
- name : ubuntu:24.04
43
45
entrypoint : bash
44
46
args :
@@ -61,5 +63,57 @@ steps:
61
63
id : prepare-golden
62
64
waitFor : ["-"]
63
65
66
+ - name : ubuntu:24.04
67
+ entrypoint : bash
68
+ args :
69
+ - " -c"
70
+ - |
71
+ # Install docker
72
+ apt-get update
73
+ apt-get install -y ca-certificates curl gnupg lsb-release
74
+ mkdir -p /etc/apt/keyrings
75
+ curl -fsSL https://download.docker.com/linux/ubuntu/gpg | \
76
+ gpg --dearmor -o /etc/apt/keyrings/docker.gpg
77
+ echo \
78
+ "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \
79
+ $(lsb_release -cs) stable" | \
80
+ tee /etc/apt/sources.list.d/docker.list > /dev/null
81
+ apt-get update
82
+ apt-get -y install \
83
+ docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
84
+ docker run \
85
+ --rm \
86
+ --quiet \
87
+ -u "$(id -u):$(id -g)" \
88
+ -v "/workspace/google-cloud-java:/workspace" \
89
+ -v "/workspace/hermetic_build/library_generation/tests/resources/integration/google-cloud-java:/workspace/config" \
90
+ -v "/workspace/googleapis:/workspace/apis" \
91
+ "${_TEST_IMAGE}" \
92
+ --generation-config-path="/workspace/config/generation_config.yaml" \
93
+ --api-definitions-path="/workspace/apis"
94
+ id : generate-libraries
95
+ waitFor : [
96
+ " build-image" ,
97
+ " download-api-definitions" ,
98
+ " prepare-golden"
99
+ ]
64
100
options :
65
101
logging : CLOUD_LOGGING_ONLY
102
+
103
+
104
+
105
+
106
+
107
+
108
+
109
+
110
+
111
+
112
+
113
+
114
+
115
+
116
+
117
+
118
+
119
+
You can’t perform that action at this time.
0 commit comments