From 82bec846a16440f2d6c40b4eec079cd69b55fcf0 Mon Sep 17 00:00:00 2001 From: Gerhard Schlager Date: Thu, 13 Apr 2023 12:41:02 +0200 Subject: [PATCH] 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. --- templates/web.template.yml | 1 + 1 file changed, 1 insertion(+) 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 -- 2.25.1