feat: refs #7442 Kubernetes deploy version
gitea/vn-autoconfig/pipeline/head This commit looks good
Details
gitea/vn-autoconfig/pipeline/head This commit looks good
Details
This commit is contained in:
parent
9f8072fbaf
commit
6925d1dd14
|
@ -14,6 +14,10 @@ pipeline {
|
||||||
CREDENTIALS = credentials('docker-registry')
|
CREDENTIALS = credentials('docker-registry')
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
def packageJson = readJSON file: 'package.json'
|
||||||
|
env.VERSION = packageJson.version
|
||||||
|
}
|
||||||
dockerBuild()
|
dockerBuild()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -22,12 +26,16 @@ pipeline {
|
||||||
branch 'master'
|
branch 'master'
|
||||||
}
|
}
|
||||||
steps {
|
steps {
|
||||||
|
script {
|
||||||
|
def packageJson = readJSON file: 'package.json'
|
||||||
|
env.VERSION = packageJson.version
|
||||||
|
}
|
||||||
withKubeConfig([
|
withKubeConfig([
|
||||||
serverUrl: "$KUBERNETES_API",
|
serverUrl: "$KUBERNETES_API",
|
||||||
credentialsId: 'kubernetes',
|
credentialsId: 'kubernetes',
|
||||||
namespace: 'autoconfig'
|
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'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
vn-autoconfig (1.0.7) stable; urgency=low
|
vn-autoconfig (1.0.8) stable; urgency=low
|
||||||
|
|
||||||
* Initial Release.
|
* Initial Release.
|
||||||
|
|
||||||
|
|
|
@ -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"
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue