jenkins-docker #17
23
Jenkinsfile
vendored
23
Jenkinsfile
vendored
@@ -39,6 +39,17 @@ pipeline {
|
|||||||
sh 'npm audit'
|
sh 'npm audit'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
stage('Push image to gitea registry') {
|
||||||
|
steps {
|
||||||
|
echo 'Start Pushing'
|
||||||
|
script {
|
||||||
|
docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
|
||||||
|
docker.build("innohub/tatort:${env.BUILD_ID}", '-f Dockerfile.dev .').push('latest')
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// stage('Build') {
|
// stage('Build') {
|
||||||
@@ -50,18 +61,6 @@ pipeline {
|
|||||||
// }
|
// }
|
||||||
// }
|
// }
|
||||||
|
|
||||||
stage('Push image in gitea registry') {
|
|
||||||
steps {
|
|
||||||
echo 'Start Pushing'
|
|
||||||
script {
|
|
||||||
def dockerfile = 'Dockerfile.dev'
|
|
||||||
docker.withRegistry('https://gitea.innovation-hub-niedersachsen.de', 'JenkinsGitea') {
|
|
||||||
docker.build("innohub/tatort:${env.BUILD_ID}", "-f ${dockerfile} .").push('latest')
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
post {
|
post {
|
||||||
success {
|
success {
|
||||||
echo 'Pipeline erfolgreich!'
|
echo 'Pipeline erfolgreich!'
|
||||||
|
|||||||
Reference in New Issue
Block a user