Add CICD
Some checks failed
continuous-integration/drone Build is failing
Build and Release / build (push) Has been cancelled

This commit is contained in:
Yaojia Wang
2026-03-22 17:08:55 +01:00
parent b3e0efcc11
commit 4afe4aab1e
9 changed files with 232 additions and 0 deletions

29
.drone.yml Normal file
View File

@@ -0,0 +1,29 @@
kind: pipeline
type: kubernetes
name: build-and-push
trigger:
branch:
- main
- develop
event:
- push
- custom
steps:
- name: build-and-push
image: gcr.io/kaniko-project/executor:debug
commands:
- >
/kaniko/executor
--context=/drone/src
--dockerfile=Dockerfile
--destination=192.168.68.11:30500/xiaohongshu-mcp:${DRONE_COMMIT_SHA:0:8}
--destination=192.168.68.11:30500/xiaohongshu-mcp:latest
--insecure
--skip-tls-verify
- name: restart-deployment
image: bitnami/kubectl:latest
commands:
- kubectl rollout restart deploy/xiaohongshu-mcp -n xiaohongshu-mcp