1
0

Update .drone.yml

This commit is contained in:
Filip Rojek 2023-12-01 03:50:40 +01:00
parent c5c23607a1
commit b0db369c15

View File

@ -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