1
0
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:
Ville Skyttä 2023-06-15 20:34:09 +03:00 committed by GitHub
parent a76db83da0
commit 4b78278292
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

10
www/docs/static/run vendored
View File

@ -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