-
Notifications
You must be signed in to change notification settings - Fork 0
/
buddy.yml
76 lines (76 loc) · 2.45 KB
/
buddy.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
- pipeline: "pages"
on: "EVENT"
events:
- type: "PUSH"
refs:
- "refs/heads/main"
priority: "NORMAL"
fail_on_prepare_env_warning: true
trigger_conditions:
- trigger_condition: "VAR_IS"
trigger_variable_value: "$OWNER_EMAIL"
trigger_variable_key: "BUDDY_EXECUTION_REVISION_COMMITTER_EMAIL"
variables:
- key: "OWNER_EMAIL"
value: "secure!R6iuQ26d/Ba+cmjNPr/ua0Oo/3YjwnyN4kLRW6F0Dx8=.O7KCwvtQ3jx+crlt8ZpYsA=="
type: "VAR"
encrypted: true
actions:
- action: "Execute: hugo"
type: "BUILD"
working_directory: "/buddy/n0tr00t"
docker_image_name: "library/ubuntu"
docker_image_tag: "latest"
execute_commands:
- "gpg --pinentry-mode loopback --passphrase \"$(echo $PRIVATE_KEY_PASSWORD | base64 -d)\" --import $PRIVEKEY"
- "gpg --pinentry-mode loopback --passphrase \"$(echo $PRIVATE_KEY_PASSWORD | base64 -d)\" --yes --decrypt-files content/**/*.gpg"
- "git submodule update --remote --merge || git submodule update --init --recursive --remote"
- "mkdir -v docs"
- "hugo --minify --gc"
setup_commands:
- "apt-get update"
- "apt-get install -y software-properties-common"
- "add-apt-repository ppa:longsleep/golang-backports"
- "apt-get update"
- "apt-get install -y git golang-go hugo"
volume_mappings:
- "/:/buddy/n0tr00t"
cache_base_image: true
shell: "BASH"
trigger_conditions:
- trigger_condition: "ON_CHANGE_AT_PATH"
trigger_condition_paths:
- "/archetypes"
- "/assets"
- "/buddy.yml"
- "/config.toml"
- "/content"
- "/data"
- "/layouts"
- "/i18n"
- "/resources"
- "/static"
- "/themes"
- action: "Push to n0tr00teuorg/n0tr00teuorg.gitlab.io"
type: "PUSH"
git_auth_mode: "CURRENT"
push_url: "n0tr00teuorg/n0tr00teuorg.gitlab.io"
comment: "$BUDDY_EXECUTION_START_DATE"
without_force: true
trigger_conditions:
- trigger_condition: "ON_CHANGE_AT_PATH"
trigger_condition_paths:
- "/buddy.yml"
- "/docs"
- action: "Push to n0tr00teuorg/n0tr00teuorg.github.io"
type: "PUSH"
git_auth_mode: "ENV_KEY"
env_key: "secure!qDMde5DGKef5dvhbs9MGdA==.KLdCnUjtCK8vgFu2pnTjAQ=="
push_url: "[email protected]:n0tr00teuorg/n0tr00teuorg.github.io.git"
comment: "$BUDDY_EXECUTION_START_DATE"
without_force: true
trigger_conditions:
- trigger_condition: "ON_CHANGE_AT_PATH"
trigger_condition_paths:
- "/buddy.yml"
- "/docs"