Skip to content

Commit 0b2cdb0

Browse files
author
Takashi Matsuo
committed
also pass down KOKORO_KEYSTORE_DIR
1 parent ed2b3e1 commit 0b2cdb0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.kokoro/trampoline_v2.sh

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -234,10 +234,6 @@ docker_flags=(
234234
# isolation, just for packaging our dev tools.
235235
"--privileged"
236236

237-
# Pass down the KOKORO_GFILE_DIR
238-
"--volume" "${KOKORO_GFILE_DIR:-/dev/shm}:/gfile"
239-
"--env" "KOKORO_GFILE_DIR=/gfile"
240-
241237
# Tells scripts whether they are running as part of CI or not.
242238
"--env" "RUNNING_IN_CI=${RUNNING_IN_CI:-no}"
243239

@@ -264,8 +260,17 @@ docker_flags=(
264260
# Mount the /tmp so that docker in docker can mount the files
265261
# there correctly.
266262
"--volume" "/tmp:/tmp"
263+
264+
# Pass down the KOKORO_GFILE_DIR and KOKORO_KEYSTORE_DIR
265+
# TODO(tmatsuo): This part is not portable.
266+
"--env" "TRAMPOLINE_SECRET_DIR=/secrets"
267+
"--volume" "${KOKORO_GFILE_DIR:-/dev/shm}:/secrets/gfile"
268+
"--env" "KOKORO_GFILE_DIR=/secrets/gfile"
269+
"--volume" "${KOKORO_KEYSTORE_DIR:-/dev/shm}:/secrets/keystore"
270+
"--env" "KOKORO_KEYSTORE_DIR=/secrets/keystore"
267271
)
268272

273+
269274
# Add an option for nicer output if the build gets a tty.
270275
if [[ -t 0 ]]; then
271276
docker_flags+=("-it")

0 commit comments

Comments
 (0)