Merge pull request 'Forgejo v1.19.2-0 has generate-runner-token' (#15) from earl-warren/setup-forgejo:wip-registration-token-admin into main

Reviewed-on: https://code.forgejo.org/actions/setup-forgejo/pulls/15
Reviewed-by: dachary <dachary@noreply.code.forgejo.org>
This commit is contained in:
earl-warren 2023-04-30 07:36:28 +00:00
commit ae7f03683b
2 changed files with 2 additions and 2 deletions

View file

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

View file

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