🔧 Push release version to Docker image

Signed-off-by: Luke Tainton <luke@tainton.uk>
This commit is contained in:
2020-08-17 11:57:30 +01:00
parent c8576aa757
commit 099b82f13a
3 changed files with 9 additions and 1 deletions

View File

@@ -1,4 +1,10 @@
<?php
function get_version() {
$version = "v" . file_get_contents(__DIR__ . '/VERSION');
return $version;
}
function get_all_users($db) {
try {
$stmt = "SELECT * FROM users";