discourse_docker における shallow git fetch のリグレッション

これは機能しません。なぜなら、これはバージョンを取得できないために失敗するコードの後に実行されるからです。機能したのは、web.template.yml の隣に以下の内容を持つ version.template.yml を作成することでした。

params:
  home: /var/www/discourse

run:
  - exec:
      cd: $home
      hook: code
      cmd:
        - git fetch --tags

その後、このファイルを containers/app.yml に web.template.yml の前に含めます。

templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/version.template.yml"
  - "templates/web.template.yml"