File tree Expand file tree Collapse file tree 1 file changed +10
-7
lines changed
Expand file tree Collapse file tree 1 file changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,16 @@ mkdir -p ${SECRET_LOCATION}
2828for key in $( echo ${SECRET_MANAGER_KEYS} | sed " s/,/ /g" )
2929do
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
You can’t perform that action at this time.
0 commit comments