沪ICP备19023181号-1
Collect from网页模板
Modified by Sprite小站

github runners

github runners

自托管的runner

runner运行在指定的服务器上, github不会收费

repo添加runner

https://docs.github.com/zh/actions/hosting-your-own-runners/managing-self-hosted-runners/adding-self-hosted-runners#adding-a-self-hosted-runner-to-a-repository

宿主机安装runner作为后台服务

https://docs.github.com/zh/actions/hosting-your-own-runners/managing-self-hosted-runners/configuring-the-self-hosted-runner-application-as-a-service

自动化部署

https://docs.github.com/zh/actions/learn-github-actions/essential-features-of-github-actions

Demo: build and push to ACR

https://github.com/Song2017/django-blog/tree/main/.github/workflows

Notes

  1. 同一台宿主机可以运行多个runner服务, 是用文件目录区分的 https://github.com/orgs/community/discussions/26258
  2. repo密钥还要添加到环境中

发表评论

评论列表,共 0 条评论

    暂无评论