感谢澄清:这正是我之前遗漏的部分。对于和我一样感到困惑的朋友,获取 Discourse 的发布标签可以通过以下步骤实现:
- 确保
app.yml中的 version 参数 未设置,例如:params: db_default_text_search_config: "pg_catalog.english" # version: stable - 在
app.yml末尾添加代码以检出所需版本,例如:hooks: after_code: - exec: cd: $home/plugins cmd: - git clone https://github.com/discourse/docker_manager.git + - exec: + cd: $home + cmd: + - git fetch --depth=1 origin tag v2.5.0 --no-tags + - git checkout v2.5.0
运行 ./launcher rebuild app 时,会发生以下情况:
- 默认 version(即 test_passed 分支)会被检出。
- v2.5.0 标签会被拉取并检出,从而有效替换之前的版本。