Skip to content

Commit 8809a16

Browse files
committed
call gcloud directly
1 parent 57c9d50 commit 8809a16

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.kokoro/populate-secrets.sh

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,16 @@ mkdir -p ${SECRET_LOCATION}
2828
for key in $(echo ${SECRET_MANAGER_KEYS} | sed "s/,/ /g")
2929
do
3030
msg "Retrieving secret ${key}"
31-
docker run --entrypoint=gcloud \
32-
--volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \
33-
gcr.io/google.com/cloudsdktool/cloud-sdk \
34-
secrets versions access latest \
35-
--project cloud-devrel-kokoro-resources \
36-
--secret ${key} > \
37-
"${SECRET_LOCATION}/${key}"
31+
gcloud secrets versions access latest \
32+
--project cloud-devrel-kokoro-resources \
33+
--secret "${key}" > "${SECRET_LOCATION}/${key}"
34+
# docker run --entrypoint=gcloud \
35+
# --volume=${KOKORO_GFILE_DIR}:${KOKORO_GFILE_DIR} \
36+
# gcr.io/google.com/cloudsdktool/cloud-sdk \
37+
# secrets versions access latest \
38+
# --project cloud-devrel-kokoro-resources \
39+
# --secret ${key} > \
40+
# "${SECRET_LOCATION}/${key}"
3841
if [[ $? == 0 ]]; then
3942
msg "Secret written to ${SECRET_LOCATION}/${key}"
4043
else

0 commit comments

Comments
 (0)