|
@@ -97,8 +97,8 @@ pipeline {
|
|
|
stage("Tagging"){
|
|
|
steps{
|
|
|
echo "Setting latest tag"
|
|
|
- sh '''docker tag ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG} ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest
|
|
|
- docker push ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest'''
|
|
|
+ sh """ docker tag ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:${NEWTAG} ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest
|
|
|
+ docker push ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest """
|
|
|
echo "Updating tag info in ${SWARM_GIT_NAME} repository"
|
|
|
withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
|
|
|
sh '''GIT_SSH_COMMAND='ssh -i ${GIT_SSH_KEY} -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no' \
|