Browse Source

fix: move when outside into step

pull/4/head
Rohan Verma 6 years ago
parent
commit
3e24e08d89
1 changed files with 6 additions and 6 deletions
  1. +6
    -6
      .drone.yml

+ 6
- 6
.drone.yml View File

steps: steps:
- name: ssh commands for rohanverma.net - name: ssh commands for rohanverma.net
image: appleboy/drone-ssh image: appleboy/drone-ssh
when:
branch:
- master
settings: settings:
host: 159.89.175.2 host: 159.89.175.2
username: deploy username: deploy
key: key:
from_secret: ssh_key from_secret: ssh_key
script_stop: true script_stop: true
when:
branch:
- master
script: script:
- cd /home/rhnvrm/apps/rohanverma.net - cd /home/rhnvrm/apps/rohanverma.net
- git fetch origin - git fetch origin
- docker-compose up -d rohanvermanet - docker-compose up -d rohanvermanet
- name: ssh commands for next.rohanverma.net - name: ssh commands for next.rohanverma.net
image: appleboy/drone-ssh image: appleboy/drone-ssh
when:
branch:
- develop
settings: settings:
host: 159.89.175.2 host: 159.89.175.2
username: deploy username: deploy
key: key:
from_secret: ssh_key from_secret: ssh_key
script_stop: true script_stop: true
when:
branch:
- develop
script: script:
- cd /home/rhnvrm/apps/rohanverma.net - cd /home/rhnvrm/apps/rohanverma.net
- git fetch origin - git fetch origin

Loading…
Cancel
Save