From: Gerhard Schlager Date: Thu, 13 Apr 2023 10:41:02 +0000 (+0200) Subject: FEATURE: Store the `version` parameter as custom value in git config X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=82bec846a16440f2d6c40b4eec079cd69b55fcf0;p=discourse_docker.git FEATURE: Store the `version` parameter as custom value in git config This is particularly useful when the version is pointing to a git tag like `beta`, otherwise we won't be able to reliably detect the tracked version at runtime. --- diff --git a/templates/web.template.yml b/templates/web.template.yml index 4c4f950..10b006e 100644 --- a/templates/web.template.yml +++ b/templates/web.template.yml @@ -107,6 +107,7 @@ run: git -c advice.detachedHead=false checkout $version fi ' + - sudo -H -E -u discourse git config user.discourse-version $version - mkdir -p tmp - chown discourse:www-data tmp - mkdir -p tmp/pids