Add app version

This commit is contained in:
iFargle
2023-02-09 13:59:20 +09:00
parent 25570a076d
commit 83cf28a6a1
3 changed files with 8 additions and 5 deletions

6
Jenkinsfile vendored
View File

@@ -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') {

View File

@@ -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

View File

@@ -32,9 +32,10 @@
<div class="card hoverable">
<div class="card-content">
<span class="card-title">About</span>
<p>This was developed with Flask, Python, MaterializeCSS, and jQuery.</p>
<p>Developed with Flask, Python, MaterializeCSS, and jQuery.</p>
<p>Version: {{ APP_VERSION }}</p>
<p>Tested on Headscale: {{ HS_VERSION }}</p>
<p>Tested on Headscale {{ HS_VERSION }}</p>
<p>Repository: <a href="https://github.com/iFargle/headscale-webui">Github</a>.</p>
</div>
</div>
</div>