Skip to content

Commit 0785bd8

Browse files
jingxu97k8s-infra-cherrypick-robot
authored andcommitted
Update install-imgcrypt to allow change install repo
Add repo env similar to other install script Signed-off-by: Jing Xu <[email protected]>
1 parent 29be12a commit 0785bd8

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

script/setup/install-imgcrypt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,10 @@ set -eu -o pipefail
2323
script_dir="$(cd -- "$(dirname -- "$0")" > /dev/null 2>&1; pwd -P)"
2424

2525
: "${IMGCRYPT_VERSION:=$(cat "${script_dir}/imgcrypt-version")}"
26+
: "${IMGCRYPT_REPO:=https://github.com/containerd/imgcrypt.git}" # Default repo
2627

2728
TMPROOT=$(mktemp -d)
28-
git clone https://github.com/containerd/imgcrypt.git "${TMPROOT}"/imgcrypt
29+
git clone "${IMGCRYPT_REPO}" "${TMPROOT}"/imgcrypt
2930
pushd "${TMPROOT}"/imgcrypt
3031
git checkout "${IMGCRYPT_VERSION}"
3132
make

0 commit comments

Comments
 (0)