summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2023-04-10 20:06:52 +0300
committerAndrew Dolgov <[email protected]>2023-04-10 20:06:52 +0300
commit7a54154d4531fe34e7210ea435446a0f475b8656 (patch)
treeea507f334558383be798d4b3bf893e02c4aeadff /classes
parent27bd226f2ba46cda1d081ac6ae1e389a10df409f (diff)
we don't need BUILD_TIMESTAMP either
Diffstat (limited to 'classes')
-rw-r--r--classes/config.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/classes/config.php b/classes/config.php
index fa14025db..950cf4db0 100644
--- a/classes/config.php
+++ b/classes/config.php
@@ -327,11 +327,11 @@ class Config {
if (empty($this->version)) {
$this->version["status"] = -1;
- if (getenv("BUILD_TIMESTAMP") && getenv("CI_COMMIT_SHORT_SHA")) {
+ if (getenv("CI_COMMIT_SHORT_SHA") && getenv("CI_COMMIT_TIMESTAMP")) {
- $this->version["version"] = sprintf("%s-%s", getenv("BUILD_TIMESTAMP"), getenv("CI_COMMIT_SHORT_SHA"));
$this->version["branch"] = getenv("CI_COMMIT_BRANCH");
$this->version["timestamp"] = strtotime(getenv("CI_COMMIT_TIMESTAMP"));
+ $this->version["version"] = sprintf("%s-%s", date("Y.m", $this->version["timestamp"]), getenv("CI_COMMIT_SHORT_SHA"));
$this->version["commit"] = getenv("CI_COMMIT_SHORT_SHA");
$this->version["status"] = 0;