diff --git a/jenkins-shared-lib/vars/pushDockerImage.groovy b/jenkins-shared-lib/vars/pushDockerImage.groovy new file mode 100644 index 0000000..0cf0683 --- /dev/null +++ b/jenkins-shared-lib/vars/pushDockerImage.groovy @@ -0,0 +1,4 @@ +def call(String imageName, String imageTag, String dockerRepoUrl) { + sh "docker tag ${imageName}:${imageTag} ${dockerRepoUrl}:${imageTag}" + sh "docker push ${dockerRepoUrl}:${imageTag}" +} \ No newline at end of file