mirror of
https://github.com/fluencelabs/examples
synced 2024-12-04 19:20:17 +00:00
chore: Hardcode marine version (#419)
* Hardcode marine version * Hardcode
This commit is contained in:
parent
95f28e35ba
commit
c660c57b6f
12
.github/download_marine.sh
vendored
12
.github/download_marine.sh
vendored
@ -2,13 +2,5 @@
|
||||
set -o pipefail -o errexit -o nounset
|
||||
set -x
|
||||
|
||||
MARINE_RELEASE="https://api.github.com/repos/fluencelabs/marine/releases/latest"
|
||||
OUT_DIR=/usr/local/bin
|
||||
|
||||
# get metadata about release
|
||||
curl -s -H "Accept: application/vnd.github.v3+json" $MARINE_RELEASE |
|
||||
# extract url and name for asset with name "marine"
|
||||
# also append $OUT_DIR to each name so file is saved to $OUT_DIR
|
||||
jq -r ".assets | .[] | select(.name == \"marine\") | \"\(.browser_download_url) $OUT_DIR/\(.name)\"" |
|
||||
# download assets
|
||||
xargs -n2 bash -c 'curl -L $0 -o $1 && chmod +x $1'
|
||||
MARINE_RELEASE="https://github.com/fluencelabs/marine/releases/download/marine-v0.12.6/marine"
|
||||
curl -sS -L $MARINE_RELEASE -o /usr/local/bin/marine && chmod +x /usr/local/bin/marine
|
||||
|
Loading…
Reference in New Issue
Block a user