Skip to content

Commit 0037a34

Browse files
committed
ci: migrate to netlify
Signed-off-by: Mateusz Urbanek <mateusz.urbanek.98@gmail.com>
1 parent 5ca48d0 commit 0037a34

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

netlify.toml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# Netlify build instructions
2+
[build]
3+
command = "make build-docs"
4+
publish = "docs/book"
5+
6+
[build.environment]
7+
GO_VERSION = "1.24.3"
8+
9+
# Standard Netlify redirects
10+
[[redirects]]
11+
from = "https://main--kubernetes-sigs-container-object-storage-interface.netlify.com/*"
12+
to = "https://main.container-object-storage-interface.sigs.k8s.io/:splat"
13+
status = 301
14+
force = true
15+
16+
# HTTP-to-HTTPS rules
17+
[[redirects]]
18+
from = "http://main.container-object-storage-interface.sigs.k8s.io/*"
19+
to = "https://main.container-object-storage-interface.sigs.k8s.io/:splat"
20+
status = 301
21+
force = true
22+
23+
[[redirects]]
24+
from = "http://main--kubernetes-sigs-container-object-storage-interface.netlify.com/*"
25+
to = "http://main.container-object-storage-interface.sigs.k8s.io/:splat"
26+
status = 301
27+
force = true
28+
29+
[[headers]]
30+
for = "/tasks/experimental-features/runtime-sdk/runtime-sdk-openapi.yaml"
31+
[headers.values]
32+
Access-Control-Allow-Origin = "*"
33+
Access-Control-Allow-Methods = "*"

0 commit comments

Comments
 (0)