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
|
- 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
|
||||||
|
|
Loading…
Reference in a new issue