Use cached images in Kubernetes pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2026-06-20 02:07:32 +08:00
parent df41554e0b
commit ac0d366e5d

View File

@@ -14,11 +14,13 @@ trigger:
steps: steps:
- name: build-image - name: build-image
image: docker.m.daocloud.io/library/docker:27-cli image: docker.m.daocloud.io/library/docker:27-cli
pull: if-not-exists
commands: commands:
- docker build -t cdchen-backend:k8s-${DRONE_COMMIT_SHA:0:8} . - docker build -t cdchen-backend:k8s-${DRONE_COMMIT_SHA:0:8} .
- name: deploy-k8s - name: deploy-k8s
image: cdchen-k8s-tools:latest image: cdchen-k8s-tools:latest
pull: if-not-exists
network_mode: teaching-k8s network_mode: teaching-k8s
environment: environment:
HOME: /home/cdchen HOME: /home/cdchen