Update Jenkinsfile
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
All checks were successful
InnoHub Processor/tatort/pipeline/head This commit looks good
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -73,9 +73,13 @@ pipeline {
|
|||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
didRun = true
|
didRun = true
|
||||||
def tag = "innohub/tatort-dev:0.${env.BUILD_ID}"
|
def versionTag = "0.${env.BUILD_ID}-dev.1"
|
||||||
|
def imageName = "gitea.innovation-hub-niedersachsen.de/innohub/tatort-dev"
|
||||||
|
|
||||||
docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
|
docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
|
||||||
docker.build(tag, '-f Dockerfile.dev .').push('latest')
|
def img = docker.build("${imageName}:${versionTag}", '-f Dockerfile.dev .')
|
||||||
|
img.push()
|
||||||
|
img.push('latest') // Optional if you want to keep 'latest' tag
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user