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:
xtcnet 2026-03-17 23:18:22 +07:00
parent 4ec63f0fe8
commit 9536c8a75a

View file

@ -20,7 +20,7 @@ DOCKER_NETWORK="d3v-net"
FORGEJO_RUNNER_DIR="/opt/forgejo-runner" FORGEJO_RUNNER_DIR="/opt/forgejo-runner"
FORGEJO_RUNNER_CONTAINER="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' RED='\033[0;31m'
GREEN='\033[0;32m' GREEN='\033[0;32m'
@ -782,9 +782,9 @@ do_forgejo_runner_install() {
docker run --rm \ docker run --rm \
-v "${FORGEJO_RUNNER_DIR}:/data" \ -v "${FORGEJO_RUNNER_DIR}:/data" \
"${FORGEJO_RUNNER_IMAGE}" \ "${FORGEJO_RUNNER_IMAGE}" \
forgejo-runner register \ act_runner register \
--no-interactive \ --no-interactive \
--url "${forgejo_url}" \ --instance "${forgejo_url}" \
--token "${runner_token}" \ --token "${runner_token}" \
--name "$(hostname)-runner" \ --name "$(hostname)-runner" \
--labels "ubuntu-latest:docker://node:20-bullseye,ubuntu-22.04:docker://node:20-bullseye" --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 /var/run/docker.sock:/var/run/docker.sock \
-v "${FORGEJO_RUNNER_DIR}:/data" \ -v "${FORGEJO_RUNNER_DIR}:/data" \
"${FORGEJO_RUNNER_IMAGE}" \ "${FORGEJO_RUNNER_IMAGE}" \
forgejo-runner daemon act_runner daemon
log_ok "Forgejo Runner started." log_ok "Forgejo Runner started."
echo "" echo ""