minebot/.drone.yml
Joseph Montanaro 79207e8ec7
All checks were successful
continuous-integration/drone/push Build is passing
correct docker push command
2020-12-25 12:12:22 -08:00

32 lines
578 B
YAML

---
kind: pipeline
type: docker
name: main
steps:
- name: build
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- docker build -t registry:5000/minebot:latest .
when:
branch:
- master
- name: deploy
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- docker push registry:5000/minebot:latest
when:
branch:
- master
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock