Use official docker repo
This commit is contained in:
19
.drone.yml
19
.drone.yml
@@ -1,29 +1,18 @@
|
||||
kind: pipeline
|
||||
type: kubernetes
|
||||
name: build-and-push
|
||||
name: deploy
|
||||
|
||||
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
|
||||
- name: deploy
|
||||
image: bitnami/kubectl:latest
|
||||
commands:
|
||||
- kubectl apply -k k8s/base/
|
||||
- kubectl rollout restart deploy/xiaohongshu-mcp -n xiaohongshu-mcp
|
||||
- kubectl rollout status deploy/xiaohongshu-mcp -n xiaohongshu-mcp --timeout=120s
|
||||
|
||||
@@ -17,7 +17,7 @@ spec:
|
||||
spec:
|
||||
containers:
|
||||
- name: xiaohongshu-mcp
|
||||
image: 192.168.68.11:30500/xiaohongshu-mcp:latest
|
||||
image: xpzouying/xiaohongshu-mcp:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 18060
|
||||
|
||||
Reference in New Issue
Block a user