Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ node {
}
}

stage('Run image') {
/* Run an image to start services */
docker.image("ajeetraina/webpage").run('-p 80:80')
}

stage('Push image') {
/* Finally, we'll push the image with two tags:
* First, the incremental build number from Jenkins
Expand All @@ -33,4 +38,10 @@ node {
app.push("latest")
}
}

post {
success {
echo "All stages are successfully build!"
}
}
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ node {
}
}

stage('Run image') {
/* Run an image to start services */
docker.image("ajeetraina/webpage").run('-p 80:80')
}

stage('Push image') {
/* Finally, we'll push the image with two tags:
* First, the incremental build number from Jenkins
Expand Down