GitOps / Jenkins - Pipeline Ver. Docker 과의 차이점 위주로 기술됩니다.
안 보신 분은 보고와 주세요 :)
Git Hooks - 체크
Git plugin notifyCommit access tokens
node {
def app
stage('Check Docker installation') {
sh 'docker --version || echo "Docker is not installed"'
}
stage('Clone repository') {
checkout scm
}
stage('Build-Docker-Image') {
container('dind') {
sh 'docker build -t ap-seoul-1.ocir.io/cnqphqevfxnp/test-storage:latest --target development .'
}
}
}