feat: fix upload templates
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2023-04-08 12:17:01 +02:00
parent 797de688d7
commit fccc6f2433
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -70,10 +70,13 @@ func Ci(ctx context.Context) error {
log.Printf("running for: %s", entry) log.Printf("running for: %s", entry)
_, err := droneTemplates. _, _ = droneTemplates.
WithExec([]string{ WithExec([]string{
"drone", "template", "add", "--namespace", namespace, "--name", name, "--data", fmt.Sprintf("@%s", name), "drone", "template", "add", "--namespace", namespace, "--name", name, "--data", fmt.Sprintf("@%s", name),
}). }).
ExitCode(ctx)
_, err := droneTemplates.
WithExec([]string{ WithExec([]string{
"drone", "template", "update", "--namespace", namespace, "--name", name, "--data", fmt.Sprintf("@%s", name), "drone", "template", "update", "--namespace", namespace, "--name", name, "--data", fmt.Sprintf("@%s", name),
}). }).