use global trigger for pipeline
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
4fff68d87f
commit
6973d1dced
10
.drone.yml
10
.drone.yml
@ -3,6 +3,10 @@ kind: pipeline
|
||||
type: docker
|
||||
name: main
|
||||
|
||||
trigger:
|
||||
branche:
|
||||
- master
|
||||
|
||||
steps:
|
||||
- name: build
|
||||
image: docker:latest
|
||||
@ -11,9 +15,6 @@ steps:
|
||||
path: /var/run/docker.sock
|
||||
commands:
|
||||
- docker build -t registry.jfmonty2.com/minebot:latest .
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
- name: deploy
|
||||
image: docker:latest
|
||||
@ -26,9 +27,6 @@ steps:
|
||||
commands:
|
||||
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.drone
|
||||
- docker push registry.jfmonty2.com/minebot:latest
|
||||
when:
|
||||
branch:
|
||||
- master
|
||||
|
||||
volumes:
|
||||
- name: docker-socket
|
||||
|
Loading…
x
Reference in New Issue
Block a user