完善jenkins文件, 增加部署流程

This commit is contained in:
2023-08-12 11:21:55 +08:00
parent 46febf3e93
commit 0ba15e9baf

2
Jenkinsfile vendored
View File

@@ -71,7 +71,7 @@ pipeline{
steps{
sh "kubectl --kubeconfig=homelab.yaml apply -k k8s/${env.BRANCH_NAME}/"
sh "kubectl --kubeconfig=homelab.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}"
}