تراجع ضحل في جلب git في discourse_docker

هذا لا يعمل لأنه يحدث بعد الكود الذي يفشل لأنه لا يمكنه استرجاع الإصدار. ما نجح هو إنشاء ملف version.template.yml بجانب web.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"