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.
This commit is contained in:
Kyle Carberry 2023-01-23 12:12:11 -06:00 committed by GitHub
parent bbb208e29c
commit ba8dd496c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 14 additions and 1 deletions

View File

@ -18,7 +18,20 @@ import (
)
var (
//go:embed templates
// Only some templates are embedded that we want to display inside the UI.
//go:embed templates/aws-ecs-container
//go:embed templates/aws-linux
//go:embed templates/aws-windows
//go:embed templates/azure-linux
//go:embed templates/do-linux
//go:embed templates/docker
//go:embed templates/docker-code-server
//go:embed templates/docker-image-builds
//go:embed templates/docker-with-dotfiles
//go:embed templates/gcp-linux
//go:embed templates/gcp-vm-container
//go:embed templates/gcp-windows
//go:embed templates/kubernetes
files embed.FS
exampleBasePath = "https://github.com/coder/coder/tree/main/examples/templates/"