mirror of
https://github.com/fluencelabs/examples
synced 2025-04-25 10:42:16 +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 -o pipefail -o errexit -o nounset
|
||||||
set -x
|
set -x
|
||||||
|
|
||||||
MARINE_RELEASE="https://api.github.com/repos/fluencelabs/marine/releases/latest"
|
MARINE_RELEASE="https://github.com/fluencelabs/marine/releases/download/marine-v0.12.6/marine"
|
||||||
OUT_DIR=/usr/local/bin
|
curl -sS -L $MARINE_RELEASE -o /usr/local/bin/marine && chmod +x /usr/local/bin/marine
|
||||||
|
|
||||||
# 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'
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user