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