deploy
continuous-integration/drone/push Build was killed Details

This commit is contained in:
Sergio Álvarez 2022-01-10 13:11:41 +01:00
parent 9014edc0c2
commit cea2b88b30
No known key found for this signature in database
GPG Key ID: 622780889DFDBDA5
1 changed files with 29 additions and 2 deletions

View File

@ -1,6 +1,6 @@
kind: pipeline kind: pipeline
type: docker type: docker
name: default name: build
steps: steps:
- name: backend - name: backend
@ -47,3 +47,30 @@ volumes:
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