add drone CI definition
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Joseph Montanaro 2020-12-25 12:07:56 -08:00
parent 7b9c639393
commit 552cb70aee

32
.drone.yml Normal file
View File

@ -0,0 +1,32 @@
---
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