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 ef7b48f2ec
commit 6b8f048195

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-frontend:k8s-${DRONE_COMMIT_SHA:0:8} . - docker build -t cdchen-frontend: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