feat: Add CI support

This commit is contained in:
ptrcnull 2021-11-17 21:43:12 +01:00
parent 2842170199
commit dee0a6e660
3 changed files with 36 additions and 1 deletions

34
.drone.yml Normal file
View File

@ -0,0 +1,34 @@
---
kind: pipeline
steps:
- name: submodules
image: alpine/git
commands:
- git submodule update --init --recursive
- name: build
image: "klakegg/hugo:0.83.1"
commands:
- mkdir dist
- hugo -d dist
- ls -la dist
- name: deploy
image: appleboy/drone-scp
settings:
source: dist/*
target: /var/www/ptrcnull.me
host:
from_secret: ssh_host
username:
from_secret: ssh_username
password:
from_secret: ssh_password
strip_components: 1
when:
branch:
- master
event:
exclude:
- pull_request

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
dist

2
.gitmodules vendored
View File

@ -1,3 +1,3 @@
[submodule "themes/smol"]
path = themes/smol
url = ssh://git@git.ddd.rip/ptrcnull/smol.git
url = https://git.ddd.rip/ptrcnull/smol.git