fix(jenkins): new docker host rootless
Some checks failed
Portfolio/pipeline/head There was a failure building this commit

This commit is contained in:
2026-01-27 15:46:41 +01:00
parent f1794abe7e
commit 3ab04e8bd1

5
Jenkinsfile vendored
View File

@@ -1,8 +1,9 @@
pipeline {
agent any
environment {
DOCKER_HOST = "unix:///var/run/docker.sock"
DOCKER_HOST = "unix:///run/user/1001/docker.sock"
APP_VERSION = "${env.BRANCH_NAME}-${env.BUILD_NUMBER}"
DOCKER_CONFIG = "${env.WORKSPACE}/.docker"
}
stages {
stage('Build') {
@@ -58,7 +59,7 @@ pipeline {
sh "docker exec caddy-reverse-proxy caddy reload --config /etc/caddy/Caddyfile"
// Keep updated docker-compose.yml and Caddyfile for safety
sh "cp docker-compose.yml /backup-portfolio/docker-compose.yml"
sh "docker cp docker-compose.yml jenkins:/backup-portfolio/docker-compose.yml"
sh "docker cp portfolio:/etc/caddy/Caddyfile /backup-portfolio/Caddyfile"
}
}