Compare commits

...

2 Commits

Author SHA1 Message Date
77c352c7ac use global trigger for pipeline
All checks were successful
continuous-integration/drone/push Build is passing
2020-12-27 21:16:38 -08:00
5ffcdb8097 use public hostname for registry 2020-12-27 21:15:52 -08:00

View File

@ -3,6 +3,10 @@ kind: pipeline
type: docker
name: main
trigger:
branch:
- master
steps:
- name: build
image: docker:latest
@ -10,10 +14,7 @@ steps:
- name: docker-socket
path: /var/run/docker.sock
commands:
- docker build -t registry.drone/minebot:latest .
when:
branch:
- master
- docker build -t registry.jfmonty2.com/minebot:latest .
- name: deploy
image: docker:latest
@ -24,11 +25,8 @@ steps:
REGISTRY_PWD:
from_secret: registry_pwd
commands:
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.drone
- docker push registry.drone/minebot:latest
when:
branch:
- master
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.jfmonty2.com
- docker push registry.jfmonty2.com/minebot:latest
volumes:
- name: docker-socket