minebot/.drone.yml

34 lines
700 B
YAML
Raw Normal View History

2020-12-25 20:07:56 +00:00
---
kind: pipeline
type: docker
name: main
2020-12-28 05:12:18 +00:00
trigger:
branche:
- master
2020-12-25 20:07:56 +00:00
steps:
- name: build
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
2020-12-28 05:11:10 +00:00
- docker build -t registry.jfmonty2.com/minebot:latest .
2020-12-25 20:07:56 +00:00
- name: deploy
image: docker:latest
volumes:
- name: docker-socket
path: /var/run/docker.sock
2020-12-28 04:42:44 +00:00
environment:
REGISTRY_PWD:
from_secret: registry_pwd
2020-12-25 20:07:56 +00:00
commands:
2020-12-28 04:42:44 +00:00
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.drone
2020-12-28 05:11:10 +00:00
- docker push registry.jfmonty2.com/minebot:latest
2020-12-25 20:07:56 +00:00
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock