mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 00:40:58 -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: |
|
- run: |
|
||||||
set -x
|
set -x
|
||||||
./forgejo-dependencies.sh install_docker
|
./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 =========="
|
echo "=========================== launching forgejo v$version =========="
|
||||||
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo $version
|
./forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo $version
|
||||||
./forgejo.sh teardown
|
./forgejo.sh teardown
|
||||||
|
|
|
@ -21,7 +21,7 @@ function download() {
|
||||||
|
|
||||||
function register() {
|
function register() {
|
||||||
local forgejo="$1"
|
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
|
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