deploy
continuous-integration/drone/push Build was killed
Details
continuous-integration/drone/push Build was killed
Details
This commit is contained in:
parent
9014edc0c2
commit
cea2b88b30
31
.drone.yml
31
.drone.yml
|
@ -1,6 +1,6 @@
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: docker
|
type: docker
|
||||||
name: default
|
name: build
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: backend
|
- name: backend
|
||||||
|
@ -46,4 +46,31 @@ volumes:
|
||||||
path: /var/run/docker.sock
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
node:
|
node:
|
||||||
location: home
|
location: home
|
||||||
|
|
||||||
|
---
|
||||||
|
kind: pipeline
|
||||||
|
type: docker
|
||||||
|
name: deploy
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- name: run
|
||||||
|
image: docker/compose:1.29.2
|
||||||
|
environment:
|
||||||
|
username:
|
||||||
|
from_secret: registry_username
|
||||||
|
password:
|
||||||
|
from_secret: registry_password
|
||||||
|
commands:
|
||||||
|
- echo $username
|
||||||
|
- docker login -u $username -p $password https://registry.xrg.io
|
||||||
|
- docker-compose up -d
|
||||||
|
volumes:
|
||||||
|
- name: docker
|
||||||
|
path: /var/run/docker.sock
|
||||||
|
|
||||||
|
node:
|
||||||
|
location: do1
|
||||||
|
|
||||||
|
depends_on:
|
||||||
|
- build
|
||||||
|
|
Loading…
Reference in New Issue