feat: Add CI support
This commit is contained in:
parent
2842170199
commit
dee0a6e660
|
@ -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
|
|
@ -0,0 +1 @@
|
|||
dist
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue