Skip to content

Commit ba8dd49

Browse files
authored
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 bbb208e commit ba8dd49

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy