added build id to image, set correct dockerfile
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
Some checks failed
InnoHub Processor/tatort/pipeline/head There was a failure building this commit
This commit is contained in:
22
Jenkinsfile
vendored
22
Jenkinsfile
vendored
@@ -50,17 +50,17 @@ pipeline {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
// stage('Push image in gitea registry') {
|
stage('Push image in gitea registry') {
|
||||||
// steps {
|
steps {
|
||||||
// echo 'Start Pushing'
|
echo 'Start Pushing'
|
||||||
// script {
|
script {
|
||||||
// docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
|
def dockerfile = 'Dockerfile.dev'
|
||||||
// docker.build('innohub/tatort-app').push('latest')
|
docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
|
||||||
// }
|
docker.build("innohub/tatort:${env.BUILD_ID}", "-f ${dockerfile} .").push('latest')
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
// }
|
}
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
|
|||||||
Reference in New Issue
Block a user