Update .drone.yml
This commit is contained in:
parent
c5c23607a1
commit
b0db369c15
21
.drone.yml
21
.drone.yml
@ -14,9 +14,28 @@ steps:
|
|||||||
hosts: ["s3.fofrweb.com"]
|
hosts: ["s3.fofrweb.com"]
|
||||||
user: drone
|
user: drone
|
||||||
source: public/*
|
source: public/*
|
||||||
target: /srv/www/cz/pkmples/$BRANCH/
|
target: /srv/www/cz/pkmples/www/
|
||||||
recursive: true
|
recursive: true
|
||||||
delete: true
|
delete: true
|
||||||
environment:
|
environment:
|
||||||
RSYNC_KEY:
|
RSYNC_KEY:
|
||||||
from_secret: rsync_private_key
|
from_secret: rsync_private_key
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- master
|
||||||
|
|
||||||
|
- name: deploy
|
||||||
|
image: drillster/drone-rsync
|
||||||
|
settings:
|
||||||
|
hosts: ["s3.fofrweb.com"]
|
||||||
|
user: drone
|
||||||
|
source: public/*
|
||||||
|
target: /srv/www/cz/pkmples/dev/
|
||||||
|
recursive: true
|
||||||
|
delete: true
|
||||||
|
environment:
|
||||||
|
RSYNC_KEY:
|
||||||
|
from_secret: rsync_private_key
|
||||||
|
when:
|
||||||
|
branch:
|
||||||
|
- dev
|
||||||
|
Loading…
Reference in New Issue
Block a user