Publicar la web automáticamente al hacer push a master
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Ales (Shagi) Zabala Alava 2021-09-19 11:05:07 +02:00
parent fd958653fe
commit 54cd73f31d
1 changed files with 38 additions and 0 deletions

38
.drone.yml Normal file
View File

@ -0,0 +1,38 @@
---
kind: pipeline
name: default
platform:
os: linux
arch: amd64
steps:
- name: build
image: plugins/hugo
settings:
hugo_version: 0.88.1
url: https://negromate.rocks/hmdemo/
validate: true
when:
branch:
- master
- name: deploy
image: drillster/drone-rsync
settings:
hosts:
- 192.168.20.2
key:
from_secret: rsync_ssh_key
source: public/
target: /var/www/html/hmdemo
user: hm
when:
branch:
- master
---
kind: signature
hmac: eedaf25fc6dd13b10beb6533dd58eda860b7b8b6a5af7df2169bcc4e9c711c5e
...