use short sha CI envvar for version.json compatibility

This commit is contained in:
Andrew Dolgov 2023-04-10 19:55:20 +03:00
parent 2420feb91f
commit 15c9dbe270
No known key found for this signature in database
GPG Key ID: 1A56B4FA25D4AF2A
1 changed files with 1 additions and 1 deletions

View File

@ -327,7 +327,7 @@ class Config {
$this->version["version"] = sprintf("%s-%s-%s", getenv("BUILD_TIMESTAMP"), getenv("CI_COMMIT_BRANCH"), getenv("CI_COMMIT_SHORT_SHA")); $this->version["version"] = sprintf("%s-%s-%s", getenv("BUILD_TIMESTAMP"), getenv("CI_COMMIT_BRANCH"), getenv("CI_COMMIT_SHORT_SHA"));
$this->version["timestamp"] = strtotime(getenv("CI_COMMIT_TIMESTAMP")); $this->version["timestamp"] = strtotime(getenv("CI_COMMIT_TIMESTAMP"));
$this->version["commit"] = getenv("CI_COMMIT_SHA"); $this->version["commit"] = getenv("CI_COMMIT_SHORT_SHA");
$this->version["status"] = 0; $this->version["status"] = 0;
} else if (PHP_OS === "Darwin") { } else if (PHP_OS === "Darwin") {