You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
xit-opst-fo/Jenkinsfile-build

12 lines
355 B
Plaintext

node {
stage('Clone repository') {
checkout scm
}
stage('Build docker image') {
app = docker.build("xit/opst-fo:latest") //docker image build 및 이름을 xit/opst-fo:$BUILD_NUMBER(빌드번호) 설정
}
stage('Docker run'){
sh "docker run --rm --name opst-fo -d -p 80:80 xit/opst-fo:latest"
}
}