diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 490878c61c..cd789623e1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -97,7 +97,7 @@ jobs: run: | set -euo pipefail # Pinned Trunk release, checksum-verified, as web-deploy.yml installs it. - curl -sSfL -o "$RUNNER_TEMP/trunk.tar.gz" https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz + curl -sSfL --retry 5 --retry-all-errors -o "$RUNNER_TEMP/trunk.tar.gz" https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz echo "f2b4680cd239693a646a2795e4633c625328d7b2a044fbe749fa3a2fe9e7036b $RUNNER_TEMP/trunk.tar.gz" | sha256sum -c - mkdir -p "$RUNNER_TEMP/bin" && tar xzf "$RUNNER_TEMP/trunk.tar.gz" -C "$RUNNER_TEMP/bin" trunk # The page names the release profile (`web`, fat LTO: a quarter of an hour), which would diff --git a/.github/workflows/docs-preview.yml b/.github/workflows/docs-preview.yml index 4d2fe286f9..42b1e3122e 100644 --- a/.github/workflows/docs-preview.yml +++ b/.github/workflows/docs-preview.yml @@ -60,7 +60,7 @@ jobs: - name: Build the web app run: | # Pinned Trunk release, checksum-verified, installed outside root-owned directories. - curl -sSfL -o "$RUNNER_TEMP/trunk.tar.gz" https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz + curl -sSfL --retry 5 --retry-all-errors -o "$RUNNER_TEMP/trunk.tar.gz" https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz echo "f2b4680cd239693a646a2795e4633c625328d7b2a044fbe749fa3a2fe9e7036b $RUNNER_TEMP/trunk.tar.gz" | sha256sum -c - mkdir -p "$RUNNER_TEMP/bin" && tar xzf "$RUNNER_TEMP/trunk.tar.gz" -C "$RUNNER_TEMP/bin" trunk export PATH="$RUNNER_TEMP/bin:$PATH" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index bb26b94980..6c231ebfea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -285,7 +285,7 @@ jobs: - name: Install Trunk run: | set -euo pipefail - curl -sSfL -o "$RUNNER_TEMP/trunk.tar.gz" https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz + curl -sSfL --retry 5 --retry-all-errors -o "$RUNNER_TEMP/trunk.tar.gz" https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz echo "f2b4680cd239693a646a2795e4633c625328d7b2a044fbe749fa3a2fe9e7036b $RUNNER_TEMP/trunk.tar.gz" | sha256sum -c - mkdir -p "$RUNNER_TEMP/bin" tar xzf "$RUNNER_TEMP/trunk.tar.gz" -C "$RUNNER_TEMP/bin" trunk diff --git a/.github/workflows/web-deploy.yml b/.github/workflows/web-deploy.yml index 7ae1842949..8acd20f76f 100644 --- a/.github/workflows/web-deploy.yml +++ b/.github/workflows/web-deploy.yml @@ -54,7 +54,7 @@ jobs: run: | set -euo pipefail # Pinned Trunk release, checksum-verified, installed outside root-owned directories. - curl -sSfL -o "$RUNNER_TEMP/trunk.tar.gz" https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz + curl -sSfL --retry 5 --retry-all-errors -o "$RUNNER_TEMP/trunk.tar.gz" https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-x86_64-unknown-linux-gnu.tar.gz echo "f2b4680cd239693a646a2795e4633c625328d7b2a044fbe749fa3a2fe9e7036b $RUNNER_TEMP/trunk.tar.gz" | sha256sum -c - mkdir -p "$RUNNER_TEMP/bin" && tar xzf "$RUNNER_TEMP/trunk.tar.gz" -C "$RUNNER_TEMP/bin" trunk export PATH="$RUNNER_TEMP/bin:$PATH" diff --git a/Dockerfile b/Dockerfile index 61494812d1..8f770b140a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,7 +31,7 @@ RUN case "$BUILDARCH" in \ arm64) arch=aarch64; sum=b1d8e60e454f7fc182d9a4d95d1506ffbae947d8ba90f8f6f02da93b60f980f9 ;; \ *) echo "no Trunk release for BUILDARCH='$BUILDARCH' (BuildKit sets it)" >&2; exit 1 ;; \ esac \ - && curl -sSfL -o /tmp/trunk.tar.gz "https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-${arch}-unknown-linux-gnu.tar.gz" \ + && curl -sSfL --retry 5 --retry-all-errors -o /tmp/trunk.tar.gz "https://github.com/trunk-rs/trunk/releases/download/v0.21.14/trunk-${arch}-unknown-linux-gnu.tar.gz" \ && echo "${sum} /tmp/trunk.tar.gz" > /tmp/trunk.sha256 \ && sha256sum -c /tmp/trunk.sha256 \ && tar xzf /tmp/trunk.tar.gz -C /usr/local/bin trunk \