dockerfile update (poging docker 694203602232132)
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -59,10 +59,10 @@ pipeline {
|
||||
sshagent([SSH_CREDENTIALS_ID]) {
|
||||
sh """
|
||||
ssh -o StrictHostKeyChecking=no ${SSH_USER}@${TRUENAS_HOST} << EOF
|
||||
docker stop ${IMAGE_NAME} || true
|
||||
docker rm ${IMAGE_NAME} || true
|
||||
docker pull ${IMAGE_NAME}:${IMAGE_TAG} || echo "Local image will be used"
|
||||
docker run -d --name ${IMAGE_NAME} -p 8080:8080 ${IMAGE_NAME}:${IMAGE_TAG}
|
||||
sudo docker stop ${IMAGE_NAME} || true
|
||||
sudo docker rm ${IMAGE_NAME} || true
|
||||
sudo docker pull ${IMAGE_NAME}:${IMAGE_TAG} || echo "Local image will be used"
|
||||
sudo docker run -d --name ${IMAGE_NAME} -p 8080:8080 ${IMAGE_NAME}:${IMAGE_TAG}
|
||||
EOF
|
||||
"""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user