meta: use deploy_host key
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
cbf656cc22
commit
bc9a589091
1 changed files with 6 additions and 5 deletions
11
.drone.yml
11
.drone.yml
|
@ -18,15 +18,16 @@ steps:
|
|||
- gulp
|
||||
|
||||
- name: deploy
|
||||
image: drillster/drone-rsync # image docker permettant d'utiliser rsync pour déployer des fichiers sur un ou plusieurs hôtes
|
||||
image: drillster/drone-rsync
|
||||
settings:
|
||||
hosts: ["kobold.city"]
|
||||
hosts:
|
||||
from_secret: deploy_host
|
||||
target: /var/www/rulebook.kobold.city
|
||||
source: dist/*
|
||||
user:
|
||||
from_secret: deploy_user # ici, l'utilisateur sera tiré d'un secret Drone
|
||||
from_secret: deploy_user
|
||||
key:
|
||||
from_secret: deploy_key # idem pour la clé privée permettant la connexion à l'hôte
|
||||
from_secret: deploy_key
|
||||
when:
|
||||
branch: master # uniquement sur la branche master !
|
||||
branch: master
|
||||
delete: true
|
||||
|
|
Loading…
Reference in a new issue