diff --git a/.gitea/workflows/deploy-to-fighter.yml b/.gitea/workflows/deploy-to-fighter.yml index e2e1abc..0c7d045 100644 --- a/.gitea/workflows/deploy-to-fighter.yml +++ b/.gitea/workflows/deploy-to-fighter.yml @@ -7,7 +7,7 @@ on: jobs: Deploy-to-Fighter: - runs-on: internal + runs-on: fighter steps: - name: Pull latest code onto Fighter via SSH uses: appleboy/ssh-action@master diff --git a/druid/config/gitea/README.md b/druid/config/gitea/README.md index aca88fa..0fbb5c1 100644 --- a/druid/config/gitea/README.md +++ b/druid/config/gitea/README.md @@ -26,4 +26,12 @@ Allow migrating from specific domains. ``` [migrations] ALLOWED_DOMAINS = gitlab.jafner.net, *.github.com, github.com -``` \ No newline at end of file +``` + +# Re-register Gitea Runners +To force the runners to re-register (to apply updated labels, for example). + +1. Stop and remove the containers. Run `docker ps -aq --filter name="gitea_runner-*" | xargs docker stop | xargs docker rm`. +2. Delete the `.runner` files for each runner. Run `find ~/data/gitea/ -name ".runner" -delete`. +3. Bring the runners back up. Run `docker compose up -d` from the gitea directory. + diff --git a/fighter/config/gitea/runner-ubuntu-internal.env b/fighter/config/gitea/runner-ubuntu-internal.env index 72da8ff..c467aa9 100644 --- a/fighter/config/gitea/runner-ubuntu-internal.env +++ b/fighter/config/gitea/runner-ubuntu-internal.env @@ -1,4 +1,4 @@ CONFIG_FILE=/config.yaml GITEA_INSTANCE_URL=https://gitea.jafner.tools GITEA_RUNNER_NAME=fighter1 -GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster,internal,fighter +GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:16-bullseye,ubuntu-22.04:docker://node:16-bullseye,ubuntu-20.04:docker://node:16-bullseye,ubuntu-18.04:docker://node:16-buster,fighter