feat: Add CI support
This commit is contained in:
parent
2842170199
commit
dee0a6e660
34
.drone.yml
Normal file
34
.drone.yml
Normal 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
1
.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
dist
|
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -1,3 +1,3 @@
|
||||||
[submodule "themes/smol"]
|
[submodule "themes/smol"]
|
||||||
path = themes/smol
|
path = themes/smol
|
||||||
url = ssh://git@git.ddd.rip/ptrcnull/smol.git
|
url = https://git.ddd.rip/ptrcnull/smol.git
|
||||||
|
|
Loading…
Reference in a new issue