mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-03-17 20:47:50 +02:00
docs: runner script fixes (#4112)
Primary motivation here is to fix the runner script on Linux arm64; see the first commit. The other two contain some while-at-it cleanups.
This commit is contained in:
parent
a76db83da0
commit
4b78278292
10
www/docs/static/run
vendored
10
www/docs/static/run
vendored
@ -23,14 +23,16 @@ test -z "$VERSION" && {
|
||||
TMP_DIR="$(mktemp -d)"
|
||||
# shellcheck disable=SC2064 # intentionally expands here
|
||||
trap "rm -rf \"$TMP_DIR\"" EXIT
|
||||
export TAR_FILE="$TMP_DIR/${FILE_BASENAME}_$(uname -s)_$(uname -m).tar.gz"
|
||||
OS="$(uname -s)"
|
||||
ARCH="$(uname -m)"
|
||||
test "$ARCH" = "aarch64" && ARCH="arm64"
|
||||
TAR_FILE="${FILE_BASENAME}_${OS}_${ARCH}.tar.gz"
|
||||
|
||||
(
|
||||
cd "$TMP_DIR"
|
||||
echo "Downloading GoReleaser $VERSION..."
|
||||
curl -sfLo "$TAR_FILE" \
|
||||
"$RELEASES_URL/download/$VERSION/${FILE_BASENAME}_$(uname -s)_$(uname -m).tar.gz"
|
||||
curl -sfLo "checksums.txt" "$RELEASES_URL/download/$VERSION/checksums.txt"
|
||||
curl -sfLO "$RELEASES_URL/download/$VERSION/$TAR_FILE.tar.gz"
|
||||
curl -sfLO "$RELEASES_URL/download/$VERSION/checksums.txt"
|
||||
echo "Verifying checksums..."
|
||||
sha256sum --ignore-missing --quiet --check checksums.txt
|
||||
if command -v cosign >/dev/null 2>&1; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user