Compare commits
2 commits
1c3ba40b56
...
b64ddacb41
Author | SHA1 | Date | |
---|---|---|---|
b64ddacb41 | |||
f5f87a52dc |
1 changed files with 12 additions and 18 deletions
30
.drone.yml
30
.drone.yml
|
@ -1,44 +1,38 @@
|
||||||
---
|
---
|
||||||
|
|
||||||
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
|
- sh /home/vylpes/scripts/vylbot/deploy_prod.sh
|
||||||
commands:
|
|
||||||
- sh /home/vylpes/scripts/vylbot/deploy_prod.sh
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
- 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
|
- sh /home/vylpes/scripts/vylbot/deploy_stage.sh
|
||||||
commands:
|
|
||||||
- sh /home/vylpes/scripts/vylbot/deploy_stage.sh
|
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
branch:
|
branch:
|
||||||
|
|
Loading…
Reference in a new issue