|
|
|
@ -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' |
|
|
|
|
) |
|
|
|
|
} |
|
|
|
|