mirror of https://github.com/istio/istio.io.git
Automator: update common-files@master in istio/istio.io@master (#8307)
This commit is contained in:
parent
30a109bc2e
commit
a11a1012d5
|
@ -1 +1 @@
|
|||
9ce6e1cc6477dc9a675ab7e76964008515fc559a
|
||||
fbf0ee9a2ddc754e7df7071bbc249736cd42807d
|
||||
|
|
|
@ -59,7 +59,7 @@ fi
|
|||
|
||||
# Build image to use
|
||||
if [[ "${IMAGE_VERSION:-}" == "" ]]; then
|
||||
export IMAGE_VERSION=master-2020-10-02T20-42-01
|
||||
export IMAGE_VERSION=master-2020-10-15T14-31-45
|
||||
fi
|
||||
if [[ "${IMAGE_NAME:-}" == "" ]]; then
|
||||
export IMAGE_NAME=build-tools
|
||||
|
@ -104,6 +104,18 @@ if [[ -d "${HOME}/.config/gcloud" ]]; then
|
|||
CONDITIONAL_HOST_MOUNTS+="--mount type=bind,source=${HOME}/.config/gcloud,destination=/config/.config/gcloud,readonly "
|
||||
fi
|
||||
|
||||
# gitconfig conditional host mount (needed for git commands inside container)
|
||||
if [[ -f "${HOME}/.gitconfig" ]]; then
|
||||
CONDITIONAL_HOST_MOUNTS+="--mount type=bind,source=${HOME}/.gitconfig,destination=/home/.gitconfig,readonly "
|
||||
fi
|
||||
|
||||
# .netrc conditional host mount (needed for git commands inside container)
|
||||
if [[ -f "${HOME}/.gitconfig" ]]; then
|
||||
CONDITIONAL_HOST_MOUNTS+="--mount type=bind,source=${HOME}/.netrc,destination=/home/.netrc,readonly "
|
||||
fi
|
||||
|
||||
# echo ${CONDITIONAL_HOST_MOUNTS}
|
||||
|
||||
# This function checks if the file exists. If it does, it creates a randomly named host location
|
||||
# for the file, adds it to the host KUBECONFIG, and creates a mount for it.
|
||||
add_KUBECONFIG_if_exists () {
|
||||
|
|
Loading…
Reference in New Issue