Skip to content

Commit 9f40863

Browse files
authored
Merge pull request #11358 from samuelkarp/pr-11019-1.7
[release/1.7] Update install-imgcrypt to allow change install repo
2 parents 9dbb9ed + 83eaab4 commit 9f40863

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

script/setup/install-imgcrypt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ set -eu -o pipefail
2222

2323
script_dir="$(cd -- "$(dirname -- "$0")" > /dev/null 2>&1; pwd -P)"
2424

25-
: "${IMGCRYPT_COMMIT:=$(cat "${script_dir}/imgcrypt-version")}"
25+
: "${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
30-
git checkout "${IMGCRYPT_COMMIT}"
31+
git checkout "${IMGCRYPT_VERSION}"
3132
make
3233
make containerd-release -e DESTDIR="${DESTDIR}/usr/local"
3334

0 commit comments

Comments
 (0)