Use cached images in Kubernetes pipeline
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user