fix:修正流水线配置(部署阶段)
This commit is contained in:
Vendored
+1
-8
@@ -20,14 +20,7 @@ pipeline {
|
|||||||
|
|
||||||
stage('Build Docker Image') {
|
stage('Build Docker Image') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
sh 'docker build -t $IMAGE_NAME .'
|
||||||
// 切换到宿主环境调用 docker 命令
|
|
||||||
docker.image('docker:24.0.7-cli').inside('--entrypoint="" -v /var/run/docker.sock:/var/run/docker.sock -v $PWD:/workspace -w /workspace') {
|
|
||||||
sh '''
|
|
||||||
docker build -t $IMAGE_NAME .
|
|
||||||
'''
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user