From c5ad84aea4c05aa8c4a0c1b4f64f436cbb17c765 Mon Sep 17 00:00:00 2001 From: lynoure Date: Thu, 10 Oct 2024 15:33:51 +0000 Subject: [PATCH] Made it a little bit easier to get the latest version of the runner and verify the file --- docs/admin/runner-installation.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/admin/runner-installation.md b/docs/admin/runner-installation.md index 4c8a91c3..9c904c5d 100644 --- a/docs/admin/runner-installation.md +++ b/docs/admin/runner-installation.md @@ -19,9 +19,11 @@ Each `Forgejo Runner` release is published for all supported architectures as: Download the latest [binary release](https://code.forgejo.org/forgejo/runner/releases) and verify its signature: ```shell -$ wget -O forgejo-runner https://code.forgejo.org/forgejo/runner/releases/download/vx.y.z/forgejo-runner-x.y.z-linux-amd64 + +$ export RUNNER_VERSION=$(curl -X 'GET' https://code.forgejo.org/api/v1/repos/forgejo/runner/releases/latest | jq .name -r | cut -c 2-) +$ wget -O forgejo-runner https://code.forgejo.org/forgejo/runner/releases/download/v${RUNNER_VERSION}/forgejo-runner-${RUNNER_VERSION}-linux-amd64 $ chmod +x forgejo-runner -$ wget -O forgejo-runner.asc https://code.forgejo.org/forgejo/runner/releases/download/vx.y.z/forgejo-runner-x.y.z-linux-amd64.asc +$ wget -O forgejo-runner.asc https://code.forgejo.org/forgejo/runner/releases/download/v${RUNNER_VERSION}/forgejo-runner-${RUNNER_VERSION}-linux-amd64.asc $ gpg --keyserver keys.openpgp.org --recv EB114F5E6C0DC2BCDD183550A4B61A2DC5923710 $ gpg --verify forgejo-runner.asc forgejo-runner Good signature from "Forgejo "