add drone.yaml

This commit is contained in:
simple321vip
2026-06-29 22:35:45 +08:00
parent 21b4897005
commit 6ed2fb8cac
3 changed files with 95 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
kind: pipeline
type: kubernetes
name: build-and-deploy-prod
trigger:
event:
- push
branch:
- master
steps:
- name: prod-build-image
image: ccr.ccs.tencentyun.com/violin/drone-kaniko:latest
settings:
repo: ccr.ccs.tencentyun.com/violin/violin-cv
tags:
- latest
dockerfile: Dockerfile
context: .
registry: ccr.ccs.tencentyun.com
username: 100024540033
password:
from_secret: docker_password
- name: prod-deploy
image: ccr.ccs.tencentyun.com/violin/kubectl:latest
cluster: kubernetes
namespace: drone
commands:
- kubectl set image deployment/violin-cv cv=ccr.ccs.tencentyun.com/violin/violin-cv:latest
- kubectl rollout status deployment/violin-cv