Skip to content

Commit e41a389

Browse files
kylecarbspull[bot]
authored andcommitted
chore: manually specify templates to embed (#5823)
This is part of a multi-step cleanup for the example templates. The goal is to have a lot of templates here, and only embed specific ones we feel are impactful during setup.
1 parent 979877a commit e41a389

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

examples/examples.go

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,20 @@ import (
1818
)
1919

2020
var (
21-
//go:embed templates
21+
// Only some templates are embedded that we want to display inside the UI.
22+
//go:embed templates/aws-ecs-container
23+
//go:embed templates/aws-linux
24+
//go:embed templates/aws-windows
25+
//go:embed templates/azure-linux
26+
//go:embed templates/do-linux
27+
//go:embed templates/docker
28+
//go:embed templates/docker-code-server
29+
//go:embed templates/docker-image-builds
30+
//go:embed templates/docker-with-dotfiles
31+
//go:embed templates/gcp-linux
32+
//go:embed templates/gcp-vm-container
33+
//go:embed templates/gcp-windows
34+
//go:embed templates/kubernetes
2235
files embed.FS
2336

2437
exampleBasePath = "https://github.com/coder/coder/tree/main/examples/templates/"

0 commit comments

Comments
 (0)