mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-29 03:17:56 +00:00
Check for bundled forklift (#4055)
Added check if forklift already exists in ci image as forklift binary is now bundled with the ci-unified. This is a temporary check for the transition period
This commit is contained in:
+14
-7
@@ -119,19 +119,26 @@ default:
|
||||
#
|
||||
.forklift-cache:
|
||||
before_script:
|
||||
- 'curl --header "PRIVATE-TOKEN: $FL_CI_GROUP_TOKEN" -o forklift -L "${CI_API_V4_URL}/projects/676/packages/generic/forklift/${FL_FORKLIFT_VERSION}/forklift_${FL_FORKLIFT_VERSION}_linux_amd64"'
|
||||
- chmod +x forklift
|
||||
- mkdir ~/.forklift
|
||||
- cp $FL_FORKLIFT_CONFIG ~/.forklift/config.toml
|
||||
- shopt -s expand_aliases
|
||||
- export PATH=$PATH:$(pwd)
|
||||
- >
|
||||
if [ "$FORKLIFT_BYPASS" != "true" ]; then
|
||||
echo "FORKLIFT_BYPASS not set, creating alias cargo='forklift cargo'";
|
||||
alias cargo="forklift cargo";
|
||||
echo "FORKLIFT_BYPASS not set";
|
||||
if command -v forklift >/dev/null 2>&1; then
|
||||
echo "forklift already exists";
|
||||
forklift version
|
||||
else
|
||||
echo "forklift does not exist, downloading";
|
||||
curl --header "PRIVATE-TOKEN: $FL_CI_GROUP_TOKEN" -o forklift -L "${CI_API_V4_URL}/projects/676/packages/generic/forklift/${FL_FORKLIFT_VERSION}/forklift_${FL_FORKLIFT_VERSION}_linux_amd64";
|
||||
chmod +x forklift;
|
||||
export PATH=$PATH:$(pwd);
|
||||
echo ${FL_FORKLIFT_VERSION};
|
||||
fi
|
||||
echo "Creating alias cargo='forklift cargo'";
|
||||
shopt -s expand_aliases;
|
||||
alias cargo="forklift cargo";
|
||||
fi
|
||||
#
|
||||
- echo "FL_FORKLIFT_VERSION ${FL_FORKLIFT_VERSION}"
|
||||
|
||||
.common-refs:
|
||||
rules:
|
||||
|
||||
Reference in New Issue
Block a user