Deploy Kubernetes images through local registry
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:
@@ -16,7 +16,8 @@ steps:
|
||||
image: docker.m.daocloud.io/library/docker:27-cli
|
||||
pull: if-not-exists
|
||||
commands:
|
||||
- docker build -t cdchen-frontend:k8s-${DRONE_COMMIT_SHA:0:8} .
|
||||
- docker build -t 127.0.0.1:5000/cdchen-frontend:k8s-${DRONE_COMMIT_SHA:0:8} .
|
||||
- docker push 127.0.0.1:5000/cdchen-frontend:k8s-${DRONE_COMMIT_SHA:0:8}
|
||||
|
||||
- name: deploy-k8s
|
||||
image: cdchen-k8s-tools:latest
|
||||
@@ -25,5 +26,4 @@ steps:
|
||||
environment:
|
||||
HOME: /home/cdchen
|
||||
commands:
|
||||
- minikube image load cdchen-frontend:k8s-${DRONE_COMMIT_SHA:0:8} -p teaching-k8s
|
||||
- helm upgrade --install frontend ./chart --namespace demo --create-namespace --set image.repository=cdchen-frontend --set image.tag=k8s-${DRONE_COMMIT_SHA:0:8}
|
||||
- helm upgrade --install frontend ./chart --namespace demo --create-namespace --set image.repository=host.minikube.internal:5000/cdchen-frontend --set image.tag=k8s-${DRONE_COMMIT_SHA:0:8}
|
||||
|
||||
Reference in New Issue
Block a user