Add CI/CD

This commit is contained in:
nemunaire 2021-07-24 00:11:27 +02:00
parent acbe208700
commit 6dfd19770b

39
.drone.yml Normal file
View File

@ -0,0 +1,39 @@
---
kind: pipeline
type: docker
name: default
steps:
- name: fetch submodules
image: alpine
commands:
- apk add --no-cache git
- git submodule init
- git submodule update --recursive --remote
- name: build
image: plugins/hugo
settings:
hugo_version: 0.85.0
validate: true
- name: deploy
image: appleboy/drone-scp
settings:
tar_tmp_path: /tmp/
host: www.nemunai.re
target: /var/www/nemunai.re/htdocs/
source: public/*
strip_components: 1
username:
from_secret: ssh_username
key:
from_secret: deploy_key
port:
from_secret: ssh_port
when:
branch:
- master
event:
exclude:
- pull_request