Skip to content

Commit

Permalink
add dockerImage build
Browse files Browse the repository at this point in the history
  • Loading branch information
Rithin-QB committed May 22, 2024
1 parent 0a6998d commit 15f93b6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jenkins-shared-lib/vars/buildDockerImage.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
def call(String dockerfilePath, String imageName, String imageTag) {
sh "docker build -t ${imageName}:${imageTag} -f ${dockerfilePath} ."
}

0 comments on commit 15f93b6

Please sign in to comment.