Skip to content

Commit

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

0 comments on commit ac4c4f3

Please sign in to comment.