From ee631a8bd7d8b9b3033acc16fcb99c30831c0c47 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Sun, 30 Apr 2023 09:21:22 +0200 Subject: [PATCH] Forgejo v1.19.2-0 has generate-runner-token --- .forgejo/workflows/forgejo-sh.yml | 2 +- forgejo-runner.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.forgejo/workflows/forgejo-sh.yml b/.forgejo/workflows/forgejo-sh.yml index 3d0b818..7fecb0d 100644 --- a/.forgejo/workflows/forgejo-sh.yml +++ b/.forgejo/workflows/forgejo-sh.yml @@ -14,7 +14,7 @@ jobs: - run: | set -x ./forgejo-dependencies.sh install_docker - for version in 1.19.0-2 1.19.0-3; do + for version in 1.19.2-0 ; do echo "=========================== launching forgejo v$version ==========" ./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo $version ./forgejo.sh teardown diff --git a/forgejo-runner.sh b/forgejo-runner.sh index ba910ff..4291629 100755 --- a/forgejo-runner.sh +++ b/forgejo-runner.sh @@ -21,7 +21,7 @@ function download() { function register() { local forgejo="$1" - docker exec --user 1000 forgejo forgejo actions --registration-token-admin > forgejo-runner-token + docker exec --user 1000 forgejo forgejo actions generate-runner-token > forgejo-runner-token timeout --signal=KILL 30 forgejo-runner register --no-interactive --instance "$forgejo" --name runner --token $(cat forgejo-runner-token) --labels ubuntu-latest:docker://node:16-buster,self-hosted }