mirror of
https://codeup.aliyun.com/64f7d6b8ce01efaafef1e678/coal/coal.git
synced 2026-01-25 07:46:40 +08:00
完善jenkins文件, 增加部署流程
This commit is contained in:
4
Jenkinsfile
vendored
4
Jenkinsfile
vendored
@@ -70,8 +70,8 @@ pipeline{
|
|||||||
|
|
||||||
steps{
|
steps{
|
||||||
|
|
||||||
sh "kubectl --kubeconfig=/root/kube/k3s.yaml apply -k k8s/${env.BRANCH_NAME}/"
|
sh "kubectl --kubeconfig=homelab.yaml apply -k k8s/${env.BRANCH_NAME}/"
|
||||||
sh "kubectl --kubeconfig=/root/kube/k3s.yaml rollout restart deployment/coal-api --namespace coal-${env.BRANCH_NAME}/"
|
sh "kubectl --kubeconfig=homelab.yaml rollout restart deployment/coal-api --namespace coal-${env.BRANCH_NAME}/"
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user