minebot/.drone.yml

36 lines
719 B
YAML
Raw Normal View History

2020-12-25 12:07:56 -08:00
---
kind: pipeline
type: docker
name: main
steps:
- name: build
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
2020-12-27 20:27:48 -08:00
- docker build -t registry.drone/minebot:latest .
2020-12-25 12:07:56 -08:00
when:
branch:
- master
- name: deploy
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
2020-12-27 20:42:44 -08:00
environment:
REGISTRY_PWD:
from_secret: registry_pwd
2020-12-25 12:07:56 -08:00
commands:
2020-12-27 20:42:44 -08:00
- echo $REGISTRY_PWD | docker login -u drone --password-stdin
2020-12-27 20:27:48 -08:00
- docker push registry.drone/minebot:latest
2020-12-25 12:07:56 -08:00
when:
branch:
- master
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock