minebot/.drone.yml
Joseph Montanaro 8eb69dab14
Some checks failed
continuous-integration/drone/push Build is failing
set up registry auth
2020-12-27 20:42:44 -08:00

36 lines
719 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.drone/minebot:latest .
when:
branch:
- master
- 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
- docker push registry.drone/minebot:latest
when:
branch:
- master
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock