Use wget to download containerd archive
Signed-off-by: Maksym Pavlenko <pavlenko.maksym@gmail.com>
This commit is contained in:
parent
af09869cee
commit
cc445f54c0
|
|
@ -13,11 +13,8 @@ VERSION="v1.7.13"
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
# Download containerd source code.
|
# Download containerd source code.
|
||||||
gh release download $VERSION \
|
wget https://github.com/containerd/containerd/archive/refs/tags/$VERSION.tar.gz -O containerd.tar.gz
|
||||||
--repo containerd/containerd \
|
trap 'rm containerd.tar.gz' EXIT
|
||||||
--archive tar.gz \
|
|
||||||
--skip-existing \
|
|
||||||
--output containerd.tar.gz
|
|
||||||
|
|
||||||
# Extract zip archive to a temporary directory.
|
# Extract zip archive to a temporary directory.
|
||||||
TEMP_DIR=$(mktemp -d)
|
TEMP_DIR=$(mktemp -d)
|
||||||
|
|
@ -25,7 +22,6 @@ tar --extract \
|
||||||
--file containerd.tar.gz \
|
--file containerd.tar.gz \
|
||||||
--strip-components=1 \
|
--strip-components=1 \
|
||||||
--directory $TEMP_DIR
|
--directory $TEMP_DIR
|
||||||
rm containerd.tar.gz
|
|
||||||
|
|
||||||
function sync_crate() {
|
function sync_crate() {
|
||||||
local crate_name=$1
|
local crate_name=$1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue