Added Jenkinsfile 4

This commit is contained in:
Sebastian Seedorf
2021-04-19 09:53:32 +02:00
parent 6fca8a2d36
commit 85c1a97358

16
Jenkinsfile vendored
View File

@@ -48,20 +48,24 @@ node {
} }
/*stage('Build Docker'){ stage('Build Docker'){
sh './dockerBuild.sh' def customImage = docker.build("web/wannistesvorbei:${env.BRANCH_NAME}-${env.GIT_COMMIT}")
} }
stage('Deploy'){ stage('Deploy'){
echo 'Push to Repo' echo 'Push to Repo'
sh './dockerPushToRepo.sh' docker.withRegistry('https://docker.sebse.de', 'docker-registry-robot') {
echo 'ssh to web server and tell it to pull new image' /* Push the container to the custom Registry */
sh 'ssh deploy@xxxxx.xxxxx.com running/xxxxxxx/dockerRun.sh' customImage.push()
}
}*/ /*echo 'ssh to web server and tell it to pull new image'
sh 'ssh deploy@xxxxx.xxxxx.com running/xxxxxxx/dockerRun.sh'*/
}
stage('Cleanup'){ stage('Cleanup'){