add Jenkinsfile

This commit is contained in:
2025-03-05 15:52:54 +01:00
parent da67cbd46e
commit f682150557
4 changed files with 3 additions and 14 deletions

8
Jenkinsfile vendored
View File

@@ -22,13 +22,5 @@ pipeline {
build job: 'frontend-pipeline', wait: true
}
}
stage('Deploy Infrastructure') {
steps {
sshagent(['jenkins-ssh-key']) {
sh "ssh user@server 'cd /opt/myapp && git pull origin main && docker compose up -d'"
}
}
}
}
}