izaac/.drone.yml
Jakub K a8b8388c8c
All checks were successful
continuous-integration/drone/push Build is passing
ci/cd
2024-03-27 19:17:59 +01:00

26 lines
614 B
YAML

kind: pipeline
type: exec
name: default
steps:
- name: build
commands:
- docker build --no-cache -t izaac-master:latest .
- docker tag izaac-master:latest registry.izaac.pl:5000/izaac-master:latest
- docker push registry.izaac.pl:5000/izaac-master:latest
- name: delete
environment:
KUBECONFIG: /home/drone-runner/drone-kubeconfig
commands:
- kubectl delete deployment izaac-deployment || true
- name: deploy
environment:
KUBECONFIG: /home/drone-runner/drone-kubeconfig
commands:
- kubectl apply -f deployment.yml --insecure-skip-tls-verify
trigger:
branch:
- master