-
Notifications
You must be signed in to change notification settings - Fork 9
/
.woodpecker.yml
77 lines (73 loc) · 2.02 KB
/
.woodpecker.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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
when:
branch: [main, staging]
steps:
build:
image: eclipsefdn/hugo-node:h0.120.4-n18.18.2
commands:
- ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
- hugo version
- hugo -d public_html --config config.toml,home.toml --cleanDestinationDir
when:
event: [push, tag, deployment, cron, manual]
branch: [main]
build-staging:
image: eclipsefdn/hugo-node:h0.120.4-n18.18.2
commands:
- ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
- hugo version
- hugo -d public_html --config config.toml,home.toml --cleanDestinationDir --baseURL https://staging.x-hain.de
when:
event: [push, tag, deployment]
branch: [staging]
deploy:
image: drillster/drone-rsync
settings:
hosts: [x-hain.de]
source: ./public_html/
exclude: _
target: /public
delete: true
recursive: true
user:
from_secret: SSH_USER
key:
from_secret: SSH_PRIVATE_KEY
when:
event: [push, tag, deployment, cron, manual]
branch: [main]
deploy_staging:
image: drillster/drone-rsync
settings:
hosts: [staging.x-hain.de]
source: ./public_html/
exclude: _
target: /public
delete: true
recursive: true
user:
from_secret: SSH_USER_STAGING
key:
from_secret: SSH_PRIVATE_KEY_STAGING
when:
event: [push, tag, deployment]
branch: [staging]
build-preview:
image: eclipsefdn/hugo-node:h0.120.4-n18.18.2
commands:
- ln -sf /usr/share/zoneinfo/Europe/Berlin /etc/localtime
- hugo version
- hugo -d public_html --config config.toml,home.toml --cleanDestinationDir --baseURL /
when:
event: pull_request
preview:
image: woodpeckerci/plugin-surge-preview:next
settings:
path: ./public_html
surge_token:
from_secret: SURGE_TOKEN
forge_type: github
forge_url: https://github.com
forge_repo_token:
from_secret: GITHUB_TOKEN
when:
event: pull_request