dockerfile update (poging docker 694203602232132)

This commit is contained in:
2025-01-19 18:06:35 +01:00
parent 8dc2d437f7
commit f8796f1bba

8
Jenkinsfile vendored
View File

@@ -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
"""
}