Update .drone.yml
This commit is contained in:
parent
e27105697a
commit
b0196d8105
28
.drone.yml
28
.drone.yml
@ -0,0 +1,28 @@
|
|||||||
|
kind: pipeline
|
||||||
|
type: exec
|
||||||
|
name: default
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: build
|
||||||
|
commands:
|
||||||
|
- docker build --no-cache -t izaac-frontend:latest .
|
||||||
|
- docker tag izaac-frontend:latest registry.izaac.pl:5000/izaac-frontend:latest
|
||||||
|
- docker push registry.izaac.pl:5000/izaac-frontend:latest
|
||||||
|
|
||||||
|
- name: delete
|
||||||
|
environment:
|
||||||
|
KUBECONFIG: /home/drone-runner/drone-kubeconfig
|
||||||
|
commands:
|
||||||
|
- kubectl delete deployment izaac-frontend || true
|
||||||
|
- kubectl delete service izaac-frontend || true
|
||||||
|
- kubectl delete ingress izaac-frontend || true
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
environment:
|
||||||
|
KUBECONFIG: /home/drone-runner/drone-kubeconfig
|
||||||
|
commands:
|
||||||
|
- kubectl apply -f deployment.yml --insecure-skip-tls-verify
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
Loading…
x
Reference in New Issue
Block a user