Revert "build file"
Some checks failed
test/timeline-server/pipeline/head There was a failure building this commit
Some checks failed
test/timeline-server/pipeline/head There was a failure building this commit
This reverts commit 0383bf3afd.
This commit is contained in:
8
Jenkinsfile
vendored
8
Jenkinsfile
vendored
@@ -10,7 +10,6 @@ pipeline {
|
|||||||
REGISTRY = 'timeline-registry:5000'
|
REGISTRY = 'timeline-registry:5000'
|
||||||
PROJECT_NAME = 'timeline-server'
|
PROJECT_NAME = 'timeline-server'
|
||||||
DOCKER_REGISTRY = 'timeline-registry:5000'
|
DOCKER_REGISTRY = 'timeline-registry:5000'
|
||||||
DOCKER_BUILDKIT = '1' // 启用 BuildKit
|
|
||||||
}
|
}
|
||||||
|
|
||||||
parameters {
|
parameters {
|
||||||
@@ -94,8 +93,6 @@ pipeline {
|
|||||||
stage('Build Docker Images') {
|
stage('Build Docker Images') {
|
||||||
steps {
|
steps {
|
||||||
script {
|
script {
|
||||||
// 启用 Docker BuildKit
|
|
||||||
withEnv(['DOCKER_BUILDKIT=1']) {
|
|
||||||
def services = ['gateway', 'user', 'story', 'file']
|
def services = ['gateway', 'user', 'story', 'file']
|
||||||
def imageTags = [:]
|
def imageTags = [:]
|
||||||
|
|
||||||
@@ -109,8 +106,8 @@ pipeline {
|
|||||||
writeFile file: "${serviceDir}/Dockerfile", text: getDockerfileContent(serviceDir)
|
writeFile file: "${serviceDir}/Dockerfile", text: getDockerfileContent(serviceDir)
|
||||||
}
|
}
|
||||||
|
|
||||||
// 构建镜像,使用 BuildKit
|
// 构建镜像
|
||||||
sh "docker build --platform linux/amd64 -t ${imageName} -t ${latestImageName} ${serviceDir}/."
|
sh "docker build -t ${imageName} -t ${latestImageName} ${serviceDir}/."
|
||||||
imageTags[service] = imageName
|
imageTags[service] = imageName
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -118,7 +115,6 @@ pipeline {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
stage('Push Images') {
|
stage('Push Images') {
|
||||||
steps {
|
steps {
|
||||||
|
|||||||
Reference in New Issue
Block a user