add drone ci build

This commit is contained in:
David Sanchez 2022-02-16 14:14:01 +01:00
parent 4b4b8fcd4b
commit 0181b9b1f2
1 changed files with 44 additions and 0 deletions

44
.drone.yml Normal file
View File

@ -0,0 +1,44 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: klakegg/hugo:0.92.1-ext-ci
commands:
- hugo
- name: deploy
image: drillster/drone-rsync
settings:
hosts: [ "irssv1.ups-tlse.fr" ]
user:
from_secret: ssh_user
key:
from_secret: ssh_key
source: public/
target: ~/codes
delete: false # Remove remote files not present on client side
- name: notify
image: drillster/drone-email
settings:
host: irsamc.ups-tlse.fr
from: drone@irssv7.ups-tlse.fr
recipients: lcpq-dsasce@irsamc.ups-tlse.fr
subject: www-lcpq-codes build
attachment: build-result.xml
when:
status: [changed, failure]
trigger:
branch:
- main
event:
- push