From 83cf28a6a120049c7b288917e1d205ffbd3d4b7a Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 9 Feb 2023 13:59:20 +0900 Subject: [PATCH] Add app version --- Jenkinsfile | 6 ++++-- server.py | 2 +- templates/settings.html | 5 +++-- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/Jenkinsfile b/Jenkinsfile index 966afaa..2632088 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -1,7 +1,7 @@ def forgejoImage def ghcrImage -//jenkins needs entrypoint of the image to be empty -// def runArgs = '--entrypoint \'\'' +def APP_VERSION = 0.1.0 + pipeline { agent { label 'linux-x64' @@ -55,9 +55,11 @@ pipeline { if (env.BRANCH_NAME == 'main') { docker.withRegistry('https://git.sysctl.io/', 'gitea-jenkins-pat') { forgejoImage.push("latest") + forgejoImage.push(APP_VERSION) } docker.withRegistry('https://ghcr.io/', 'github-ifargle-pat') { ghcrImage.push("latest") + ghcrImage.push(APP_VERSION) } } else { docker.withRegistry('https://git.sysctl.io/', 'gitea-jenkins-pat') { diff --git a/server.py b/server.py index 3f4225c..08524ea 100644 --- a/server.py +++ b/server.py @@ -22,7 +22,7 @@ app.logger.setLevel(logging.DEBUG) COLOR_NAV = "blue-grey darken-1" COLOR_BTN = "blue-grey darken-3" BASE_PATH = os.environ["BASE_PATH"] -APP_VERSION = "2023-02-07.1" +APP_VERSION = "0.1.0" HS_VERSION = "0.20.0" DEBUG_STATE = False diff --git a/templates/settings.html b/templates/settings.html index 9db0cec..9582ead 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -32,9 +32,10 @@
About -

This was developed with Flask, Python, MaterializeCSS, and jQuery.

+

Developed with Flask, Python, MaterializeCSS, and jQuery.

Version: {{ APP_VERSION }}

-

Tested on Headscale: {{ HS_VERSION }}

+

Tested on Headscale {{ HS_VERSION }}

+

Repository: Github.