mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-23 22:31:04 -05:00
Forgejo v1.19.2-0 has generate-runner-token
This commit is contained in:
parent
33c7a0c667
commit
ee631a8bd7
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue