feat: Add CI support

master
ptrcnull 1 year ago
parent 2842170199
commit dee0a6e660
  1. 34
      .drone.yml
  2. 1
      .gitignore
  3. 2
      .gitmodules

@ -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

@ -0,0 +1 @@
dist

2
.gitmodules vendored

@ -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…
Cancel
Save