diff --git a/Jenkinsfile b/Jenkinsfile index 3705767..da22f27 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -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' } } } diff --git a/debian/changelog b/debian/changelog index dbce788..34590ad 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,4 +1,4 @@ -vn-autoconfig (1.0.7) stable; urgency=low +vn-autoconfig (1.0.8) stable; urgency=low * Initial Release. diff --git a/package.json b/package.json new file mode 100644 index 0000000..2066241 --- /dev/null +++ b/package.json @@ -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" + } +}