fix(install): switch Forgejo Runner to gitea/act_runner from Docker Hub
code.forgejo.org/forgejo/runner does not have usable version tags. Use gitea/act_runner:latest from Docker Hub which is fully compatible with Forgejo Actions. Update register/daemon commands accordingly (act_runner instead of forgejo-runner, --instance instead of --url). Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
4ec63f0fe8
commit
9536c8a75a
1 changed files with 4 additions and 4 deletions
|
|
@ -20,7 +20,7 @@ DOCKER_NETWORK="d3v-net"
|
|||
|
||||
FORGEJO_RUNNER_DIR="/opt/forgejo-runner"
|
||||
FORGEJO_RUNNER_CONTAINER="forgejo-runner"
|
||||
FORGEJO_RUNNER_IMAGE="code.forgejo.org/forgejo/runner:3"
|
||||
FORGEJO_RUNNER_IMAGE="gitea/act_runner:latest"
|
||||
|
||||
RED='\033[0;31m'
|
||||
GREEN='\033[0;32m'
|
||||
|
|
@ -782,9 +782,9 @@ do_forgejo_runner_install() {
|
|||
docker run --rm \
|
||||
-v "${FORGEJO_RUNNER_DIR}:/data" \
|
||||
"${FORGEJO_RUNNER_IMAGE}" \
|
||||
forgejo-runner register \
|
||||
act_runner register \
|
||||
--no-interactive \
|
||||
--url "${forgejo_url}" \
|
||||
--instance "${forgejo_url}" \
|
||||
--token "${runner_token}" \
|
||||
--name "$(hostname)-runner" \
|
||||
--labels "ubuntu-latest:docker://node:20-bullseye,ubuntu-22.04:docker://node:20-bullseye"
|
||||
|
|
@ -802,7 +802,7 @@ do_forgejo_runner_install() {
|
|||
-v /var/run/docker.sock:/var/run/docker.sock \
|
||||
-v "${FORGEJO_RUNNER_DIR}:/data" \
|
||||
"${FORGEJO_RUNNER_IMAGE}" \
|
||||
forgejo-runner daemon
|
||||
act_runner daemon
|
||||
|
||||
log_ok "Forgejo Runner started."
|
||||
echo ""
|
||||
|
|
|
|||
Loading…
Reference in a new issue