Compare commits
2 Commits
6973d1dced
...
77c352c7ac
Author | SHA1 | Date | |
---|---|---|---|
77c352c7ac | |||
5ffcdb8097 |
16
.drone.yml
16
.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
|
||||||
@ -10,10 +14,7 @@ steps:
|
|||||||
- name: docker-socket
|
- name: docker-socket
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
commands:
|
commands:
|
||||||
- docker build -t registry.drone/minebot:latest .
|
- docker build -t registry.jfmonty2.com/minebot:latest .
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- master
|
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: docker:latest
|
image: docker:latest
|
||||||
@ -24,11 +25,8 @@ steps:
|
|||||||
REGISTRY_PWD:
|
REGISTRY_PWD:
|
||||||
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.jfmonty2.com
|
||||||
- docker push registry.drone/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