Discourse 针对中国地区的新仓库配置文件

针对中国地区,我们使用了自己的代码仓库和包仓库。

文件名:web.isharkfly.template.yml

文件内容:

hooks:
  before_code:
    - exec:
        cmd:
          - su discourse -c 'git config --global url."https://src.isharkfly.com/".insteadOf "https://github.com/"'

  before_web:
    - exec:
        cmd:
          - su discourse -c 'gem sources --add https://repo.isharkfly.com/repository/ruby-public/ --remove https://rubygems.org/'

  before_yarn:
    - exec:
        cmd:
          - su discourse -c 'pnpm config set registry https://repo.isharkfly.com/repository/npm-central --global'

  before_bundle_exec:
    - exec:
        cmd:
          - su discourse -c 'bundle config mirror.https://rubygems.org https://repo.isharkfly.com/repository/ruby-public'