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