...
Login as root
Code Block cd ${service_user}/actions-runner ./svc.sh uninstall rm -rf ${service_user}/actions-runner
Look in ${service_user}/actions-runner-url.txt
Browse to that repository > Settings > Actions > Runners, and force-remove the runner.
Finally
rm ${service_user}/actions-runner-url.txt
If you need separate CI/CD runners on Dev & Prod
Install a runner on dev, and another on prod, using
--labels=develop
and--labels=main
or whatever. It is customary to match your branch names.Create two separate workflows in your repository, e.g.
.github/workflows/autodeploy-develop.yml
and.github/workflows/autodeploy-main.yml
. Configure them like this:develop
Code Block name: autodeploy-develop on: push: branches: - develop jobs: autodeploy: runs-on: [ self-hosted, develop ] steps: - working-directory: /path/to/repository run: git pull
main
Code Block name: autodeploy-main on: push: branches: - main jobs: autodeploy: runs-on: [ self-hosted, main ] steps: - working-directory: /path/to/repository run: git pull