izaac-frontend/.drone.yml
Jakub K b3adb4f8fb
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing
zmiana adresow
2024-03-27 19:13:32 +01:00

27 lines
700 B
YAML

kind: pipeline
type: exec
name: default
steps:
- name: build
commands:
- docker build --no-cache -t izaac-frontend-master:latest .
- docker tag izaac-frontend-master:latest registry.izaac.pl:5000/izaac-frontend-master:latest
- docker push registry.izaac.pl:5000/izaac-frontend-master:latest
- name: delete
environment:
KUBECONFIG: /home/drone-runner/drone-kubeconfig
commands:
- kubectl delete deployment 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