minebot/.drone.yml
Joseph Montanaro 6973d1dced
Some checks failed
continuous-integration/drone/push Build is failing
use global trigger for pipeline
2020-12-27 21:12:18 -08:00

34 lines
700 B
YAML

---
kind: pipeline
type: docker
name: main
trigger:
branche:
- master
steps:
- name: build
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- docker build -t registry.jfmonty2.com/minebot:latest .
- name: deploy
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
environment:
REGISTRY_PWD:
from_secret: registry_pwd
commands:
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.drone
- docker push registry.jfmonty2.com/minebot:latest
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock