meta: use deploy_host key
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kazhnuz 2022-03-26 16:21:00 +01:00
parent cbf656cc22
commit bc9a589091

View file

@ -18,15 +18,16 @@ steps:
- gulp - gulp
- name: deploy - 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: settings:
hosts: ["kobold.city"] hosts:
from_secret: deploy_host
target: /var/www/rulebook.kobold.city target: /var/www/rulebook.kobold.city
source: dist/* source: dist/*
user: user:
from_secret: deploy_user # ici, l'utilisateur sera tiré d'un secret Drone from_secret: deploy_user
key: key:
from_secret: deploy_key # idem pour la clé privée permettant la connexion à l'hôte from_secret: deploy_key
when: when:
branch: master # uniquement sur la branche master ! branch: master
delete: true delete: true