Compare commits
No commits in common. "6973d1dcedfb15097965bf2b6b4389552c01c8e6" and "f8fa89afca6145d6cdc331bc9bad4b0ef9f86dc0" have entirely different histories.
6973d1dced
...
f8fa89afca
14
.drone.yml
14
.drone.yml
@ -3,10 +3,6 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: main
|
name: main
|
||||||
|
|
||||||
trigger:
|
|
||||||
branche:
|
|
||||||
- master
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: build
|
- name: build
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
@ -14,7 +10,10 @@ steps:
|
|||||||
- name: docker-socket
|
- name: docker-socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker build -t registry.jfmonty2.com/minebot:latest .
|
- docker build -t registry.drone/minebot:latest .
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
@ -26,7 +25,10 @@ steps:
|
|||||||
from_secret: registry_pwd
|
from_secret: registry_pwd
|
||||||
commands:
|
commands:
|
||||||
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.drone
|
- echo $REGISTRY_PWD | docker login -u drone --password-stdin registry.drone
|
||||||
- docker push registry.jfmonty2.com/minebot:latest
|
- docker push registry.drone/minebot:latest
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
- name: docker-socket
|
- name: docker-socket
|
||||||
|
Loading…
x
Reference in New Issue
Block a user