feat: refs #7442 Kubernetes deploy version
gitea/vn-autoconfig/pipeline/head This commit looks good Details

This commit is contained in:
Juan Ferrer 2024-05-21 21:28:00 +02:00
parent 9f8072fbaf
commit 6925d1dd14
3 changed files with 21 additions and 2 deletions

10
Jenkinsfile vendored
View File

@ -14,6 +14,10 @@ pipeline {
CREDENTIALS = credentials('docker-registry')
}
steps {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
}
dockerBuild()
}
}
@ -22,12 +26,16 @@ pipeline {
branch 'master'
}
steps {
script {
def packageJson = readJSON file: 'package.json'
env.VERSION = packageJson.version
}
withKubeConfig([
serverUrl: "$KUBERNETES_API",
credentialsId: 'kubernetes',
namespace: 'autoconfig'
]) {
sh 'kubectl set image deployment/autoconfig autoconfig=registry.verdnatura.es/vn-autoconfig:latest'
sh 'kubectl set image deployment/autoconfig autoconfig=registry.verdnatura.es/vn-autoconfig:$VERSION'
}
}
}

2
debian/changelog vendored
View File

@ -1,4 +1,4 @@
vn-autoconfig (1.0.7) stable; urgency=low
vn-autoconfig (1.0.8) stable; urgency=low
* Initial Release.

11
package.json Normal file
View File

@ -0,0 +1,11 @@
{
"name": "vn-autoconfig",
"version": "1.0.8",
"author": "Verdnatura Levante SL",
"description": "Mail autoconfiguration service",
"license": "GPL-3.0",
"repository": {
"type": "git",
"url": "https://gitea.verdnatura.es/verdnatura/vn-autoconfig"
}
}