Files
simple321vip c32ce3b684
continuous-integration/drone/push Build is passing
Update .drone.yml
2026-07-01 14:10:54 +00:00

34 lines
787 B
YAML

kind: pipeline
type: kubernetes
name: build-and-deploy-prod
service_account_name: drone-builder-sa
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
- ${DRONE_COMMIT_SHA:0:8}
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
commands:
- kubectl -n violin set image deployment/violin-cv cv=ccr.ccs.tencentyun.com/violin/violin-cv:${DRONE_COMMIT_SHA:0:8}