Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Buildah cache test #644

Merged
merged 4 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dockerfiles/ci-unified/build-args
Original file line number Diff line number Diff line change
@@ -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
#
Expand Down
10 changes: 3 additions & 7 deletions dockerfiles/ci-unified/download-forklift.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand All @@ -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