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