Merged into master and set tag

This commit is contained in:
Jonathan Ervine 2020-07-10 14:11:56 +08:00
parent 707cc4f0e9
commit 5607ce5d7d

3
Jenkinsfile vendored
View File

@ -1,7 +1,7 @@
node("docker-node") { node("docker-node") {
docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') { docker.withRegistry('https://harbor.ervine.dev', 'jenkins-to-harbor') {
git branch: "3.11.6", url: "ssh://git@git.ervine.org/jonny/x86_64-alpine-mariadb", credentialsId: 'jenkins-to-git' git branch: "master", url: "ssh://git@git.ervine.org/jonny/x86_64-alpine-mariadb", credentialsId: 'jenkins-to-git'
sh "git rev-parse HEAD > .git/commit-id" sh "git rev-parse HEAD > .git/commit-id"
def commit_id = readFile('.git/commit-id').trim() def commit_id = readFile('.git/commit-id').trim()
@ -13,6 +13,7 @@ node("docker-node") {
stage "publish" stage "publish"
app.push("${env.BUILD_NUMBER}") app.push("${env.BUILD_NUMBER}")
app.push("3.11.6")
app.push("latest") app.push("latest")
stage('Deploy on K8s'){ stage('Deploy on K8s'){