forked from tprasadtp/ubuntu-post-install
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnetlify.toml
118 lines (98 loc) · 2.89 KB
/
netlify.toml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Global settings applied to the whole site.
[build]
publish = "_site/"
[build.environment]
NOKOGIRI_USE_SYSTEM_LIBRARIES="true"
# Production context: All deploys to the main
# repository branch will inherit these settings.
[context.production]
command = "chmod +x ./build/*.sh && ./build/netlify.sh --production"
# Deploy Preview context: All Deploy Previews
# will inherit these settings.
[context.deploy-preview]
publish = "_site/"
command = "chmod +x ./build/*.sh && ./build/netlify.sh --pull-request"
# Branch Deploy context: All deploys that are not in
# an active Deploy Preview will inherit these settings.
[context.branch-deploy]
command = "chmod +x ./build/*.sh && ./build/netlify.sh --branch"
# GH URLs
[[redirects]]
from = "/git"
to = "https://github.com/tprasadtp/ubuntu-post-install"
status = 302
force = true
[[redirects]]
from = "/github"
to = "https://github.com/tprasadtp/ubuntu-post-install"
status = 302
force = true
# Issues
[[redirects]]
from = "/issue"
query = {id = ":id"}
to = "https://github.com/tprasadtp/ubuntu-post-install/issues/:id"
status = 302
force = true
[[redirects]]
from = "/issues"
to = "https://github.com/tprasadtp/ubuntu-post-install/issues"
status = 302
force = true
# Pulls
[[redirects]]
from = "/pr"
query = {id = ":id"}
to = "https://github.com/tprasadtp/ubuntu-post-install/pull/:id"
status = 302
force = true
[[redirects]]
from = "/prs"
to = "https://github.com/tprasadtp/ubuntu-post-install/pulls"
status = 301
force = true
[[redirects]]
from = "/dp"
to = "/commit.json"
status = 200
force = true
# Version to old version.yml
# Avoid breaking old version checks
[[redirects]]
from = "/config/version.yml"
to = "https://raw.githubusercontent.com/tprasadtp/ubuntu-post-install/master/config/version.yml"
status = 301
force = true
# /version stuff
[[redirects]]
from = "/get/version"
to = "https://raw.githubusercontent.com/tprasadtp/ubuntu-post-install/master/config/version.yml"
status = 302
force = true
# /v3/version check stuff
[[redirects]]
from = "/get/v3/version"
to = "https://raw.githubusercontent.com/tprasadtp/ubuntu-post-install/master/config/version.yml"
status = 302
force = true
# Scripts
[[redirects]]
from = "/get/after-effects"
to = "https://github.com/tprasadtp/ubuntu-post-install/releases/latest/download/after-effects"
status = 302
force = true
[[redirects]]
from = "/get/after-effects.asc"
to = "https://github.com/tprasadtp/ubuntu-post-install/releases/latest/download/after-effects.asc"
status = 302
force = true
[[redirects]]
from = "/get/sha256sums"
to = "https://github.com/tprasadtp/ubuntu-post-install/releases/latest/download/sha256sums.txt"
status = 302
force = true
[[redirects]]
from = "/get/sha512sums"
to = "https://github.com/tprasadtp/ubuntu-post-install/releases/latest/download/sha512sums.txt"
status = 302
force = true