Skip to content

Commit

Permalink
fix(spread): check chisel binary integrity (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdcordeiro authored Oct 10, 2024
1 parent a1d67c9 commit f9129e6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spread.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,16 +84,16 @@ backends:
prepare: |
# Deb arch to GOARCH
arch="$(dpkg --print-architecture | sed -e 's/armhf/arm/g' -e 's/ppc64el/ppc64le/g')"
chisel_tar="chisel.tar.gz"
apt install -y curl wget
curl -s https://api.github.com/repos/canonical/chisel/releases/latest \
| awk "/browser_download_url/ && /chisel_v/ && /$arch/" \
| cut -d : -f 2,3 \
| tr -d \" \
| xargs wget -O $chisel_tar
| xargs wget
tar -xf $chisel_tar -C /usr/local/bin
sha384sum -c chisel_v*sha384
tar -xf chisel_v*tar.gz -C /usr/local/bin
prepare-each: chisel version

Expand Down

0 comments on commit f9129e6

Please sign in to comment.