diff --git a/dockerfiles/ci-unified/build-args b/dockerfiles/ci-unified/build-args index 7c315927..10a003a6 100644 --- a/dockerfiles/ci-unified/build-args +++ b/dockerfiles/ci-unified/build-args @@ -1,6 +1,6 @@ RUST_STABLE_VERSION=1.77.0 RUST_NIGHTLY_VERSION=2024-04-10 -FORKLIFT_VERSION=0.12.6 +FORKLIFT_VERSION=0.13.2 CODECOV_UPLOADER_VERSION=v0.7.3 CODECOV_CLI_VERSION=v0.6.0 # diff --git a/dockerfiles/ci-unified/download-forklift.sh b/dockerfiles/ci-unified/download-forklift.sh index 5a4e089f..4eb0cf6d 100644 --- a/dockerfiles/ci-unified/download-forklift.sh +++ b/dockerfiles/ci-unified/download-forklift.sh @@ -18,17 +18,13 @@ while getopts "p:v:" flag; do esac done - -echo "Downloading forklift $VERSION to $DL_PATH" - - RELEASE_URL="https://api.github.com/repos/paritytech/forklift/releases/tags/$VERSION" -if [ $VERSION="latest" ] - then +if [[ "latest" == $VERSION ]]; then RELEASE_URL="https://api.github.com/repos/paritytech/forklift/releases/latest" fi +echo "Downloading forklift $VERSION to $DL_PATH from $RELEASE_URL" RELEASE=`curl -s $RELEASE_URL` ASSET=`jq '.assets[] | select(.name | endswith("linux_amd64"))' <<< "$RELEASE"` @@ -37,7 +33,7 @@ ASSET_NAME=`jq -r '.name' <<< "$ASSET"` ASSET_URL=`jq -r '.browser_download_url' <<< "$ASSET"` mkdir -p $DL_PATH -curl -s -o $DL_PATH/$ASSET_NAME -L $ASSET_URL +curl -L -s -o $DL_PATH/$ASSET_NAME -L $ASSET_URL cp -r $DL_PATH/$ASSET_NAME /usr/local/bin/forklift chmod 755 /usr/local/bin/forklift