add Jenkinsfile
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -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'"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user