mirror of
https://code.forgejo.org/actions/setup-forgejo.git
synced 2024-11-24 00:31:02 -05:00
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:
commit
ae7f03683b
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