added Jenkinsfile
This commit is contained in:
parent
a56b748832
commit
b832e37864
31
Jenkinsfile
vendored
Normal file
31
Jenkinsfile
vendored
Normal file
@ -0,0 +1,31 @@
|
|||||||
|
node {
|
||||||
|
def resultImage
|
||||||
|
def voteImage
|
||||||
|
def workerImage
|
||||||
|
docker.withRegistry("https://index.docker.io/v1/", "dockersamples" ) {
|
||||||
|
stage('Clone repo') {
|
||||||
|
checkout scm
|
||||||
|
}
|
||||||
|
stage('Build result') {
|
||||||
|
resultImage = docker.build("dockersamples/result", "./result")
|
||||||
|
}
|
||||||
|
stage('Build vote') {
|
||||||
|
voteImage = docker.build("dockersamples/vote", "./vote")
|
||||||
|
}
|
||||||
|
stage('Build worker dotnet') {
|
||||||
|
workerImage = docker.build("dockersamples/worker", "./worker")
|
||||||
|
}
|
||||||
|
stage('Push result image') {
|
||||||
|
resultImage.push("${env.BUILD_NUMBER}")
|
||||||
|
resultImage.push()
|
||||||
|
}
|
||||||
|
stage('Push vote image') {
|
||||||
|
voteImage.push("${env.BUILD_NUMBER}")
|
||||||
|
voteImage.push()
|
||||||
|
}
|
||||||
|
stage('Push worker image') {
|
||||||
|
workerImage.push("${env.BUILD_NUMBER}")
|
||||||
|
workerImage.push()
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user