Forgejo v1.19.2-0 has generate-runner-token

This commit is contained in:
Earl Warren 2023-04-30 09:21:22 +02:00
parent 33c7a0c667
commit ee631a8bd7
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00
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
}