Update drone.yml #264
1 changed files with 12 additions and 18 deletions
26
.drone.yml
26
.drone.yml
|
@ -1,18 +1,16 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
|
||||||
name: deployment
|
name: deployment
|
||||||
|
|
||||||
server:
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
host: 192.168.68.121
|
host: 192.168.68.121
|
||||||
user: vylpes
|
username: vylpes
|
||||||
password:
|
password:
|
||||||
from_secret: ssh_password
|
from_secret: ssh_password
|
||||||
|
port: 22
|
||||||
steps:
|
script:
|
||||||
- name: deploy
|
|
||||||
commands:
|
|
||||||
- sh /home/vylpes/scripts/vylbot/deploy_prod.sh
|
- sh /home/vylpes/scripts/vylbot/deploy_prod.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -20,24 +18,20 @@ trigger:
|
||||||
- main
|
- main
|
||||||
event:
|
event:
|
||||||
- promote
|
- promote
|
||||||
target:
|
|
||||||
- production
|
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
kind: pipeline
|
kind: pipeline
|
||||||
type: ssh
|
|
||||||
name: staging
|
name: staging
|
||||||
|
|
||||||
server:
|
image: appleboy/drone-ssh
|
||||||
|
settings:
|
||||||
host: 192.168.68.121
|
host: 192.168.68.121
|
||||||
user: vylpes
|
username: vylpes
|
||||||
password:
|
password:
|
||||||
from_secret: ssh_password
|
from_secret: ssh_password
|
||||||
|
port: 22
|
||||||
steps:
|
script:
|
||||||
- name: deploy
|
|
||||||
commands:
|
|
||||||
- sh /home/vylpes/scripts/vylbot/deploy_stage.sh
|
- sh /home/vylpes/scripts/vylbot/deploy_stage.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
|
Loading…
Reference in a new issue