|
@@ -61,7 +61,8 @@ pipeline {
|
|
|
echo "Running ${DOCKER_REGISTRY}/${DOCKER_IMAGE}:latest."
|
|
|
withCredentials([sshUserPrivateKey(credentialsId: 'provision', keyFileVariable: 'GIT_SSH_KEY', passphraseVariable: '', usernameVariable: 'GIT_SSH_USERNAME')]) {
|
|
|
sh '''set +x
|
|
|
- docker run -i --rm -e TZ=Europe/Moscow -e "mode=keygen" -e "SSHKEY=$(cat ${GIT_SSH_KEY})" \
|
|
|
+ docker pull ${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest \
|
|
|
+ && docker run -i --rm -e TZ=Europe/Moscow -e "mode=keygen" -e "SSHKEY=$(cat ${GIT_SSH_KEY})" \
|
|
|
${DOCKER_REGISTRY}/iru/${DOCKER_IMAGE}:latest /tmp/keygen.sh ${key_name}
|
|
|
'''
|
|
|
}
|