-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.drone.yml
48 lines (45 loc) · 1.06 KB
/
.drone.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
kind: pipeline
name: default
steps:
- name: submodules
image: docker:git
environment:
SSH_KEY:
from_secret: ssh_key
SSH_HOST:
from_secret: ssh_host
USER_EMAIL:
from_secret: user_email
USER_NAME:
from_secret: user_name
commands:
# setup ssh for non https git pull
- ./building/drone-ssh-helper.sh submodule
- name: build
image: plugins/hugo
settings:
hugo_version: 0.55.5
buildDrafts: false
buildFuture: false
buildExpired: false
url: https://karlredman.github.io
output: ./site
config: config.toml
# minify: <not implemented>
validate: true
commands:
# hmmm, it seems that our build specs break the plugin
- hugo --gc --baseURL="https://karlredman.github.io/Articles" --config="config.toml" -d site
- name: deploy
image: docker:git
environment:
SSH_KEY:
from_secret: ssh_key
SSH_HOST:
from_secret: ssh_host
USER_EMAIL:
from_secret: user_email
USER_NAME:
from_secret: user_name
commands:
- ./building/drone-ssh-helper.sh commit