Jenkinsfile-dev 也改为多阶段构建,Dockerfile 支持 BUILD_MODE 参数
This commit is contained in:
Vendored
+1
-1
@@ -9,7 +9,7 @@ pipeline {
|
||||
stage('构建 Docker 镜像') {
|
||||
agent any
|
||||
steps {
|
||||
sh 'docker build -t $IMAGE_NAME .'
|
||||
sh 'docker build --build-arg BUILD_MODE=production -t $IMAGE_NAME .'
|
||||
}
|
||||
}
|
||||
stage('部署容器') {
|
||||
|
||||
Reference in New Issue
Block a user