Joseph Montanaro
79207e8ec7
All checks were successful
continuous-integration/drone/push Build is passing
32 lines
578 B
YAML
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 |