From cea2b88b306ab44b8a906b278b0dfff4f1d42983 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20=C3=81lvarez?= Date: Mon, 10 Jan 2022 13:11:41 +0100 Subject: [PATCH] deploy --- .drone.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.drone.yml b/.drone.yml index bf105ff..9bc6c8c 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,6 +1,6 @@ kind: pipeline type: docker -name: default +name: build steps: - name: backend @@ -46,4 +46,31 @@ volumes: path: /var/run/docker.sock node: - location: home \ No newline at end of file + 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