更新 'Jenkinsfile'

main
newrain001 9 months ago
parent e11d6cb612
commit b982db869b
  1. 4
      Jenkinsfile

4
Jenkinsfile vendored

@ -18,7 +18,7 @@ pipeline {
steps {
script {
// 假设已经配置了 Docker 认证
docker.withRegistry('https://registry.example.com', 'registry-credentials') {
docker.withRegistry('http://core.harbor.cn', 'registry-credentials') {
docker.image("${DOCKER_IMAGE}").push()
}
}
@ -28,7 +28,7 @@ pipeline {
steps {
script {
kubernetesDeploy(
configs: 'k8s/deployment.yaml',
configs: 'k8s/deploy.yaml',
kubeconfigId: 'K8S_CLUSTER_CONFIG'
)
}

Loading…
Cancel
Save