From fccc6f24335c067ae1625ac584d5a2bf390bf869 Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 8 Apr 2023 12:17:01 +0200 Subject: [PATCH] feat: fix upload templates --- shuttletask/ci.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/shuttletask/ci.go b/shuttletask/ci.go index 37289a4..8f61bc0 100644 --- a/shuttletask/ci.go +++ b/shuttletask/ci.go @@ -70,10 +70,13 @@ func Ci(ctx context.Context) error { log.Printf("running for: %s", entry) - _, err := droneTemplates. + _, _ = droneTemplates. WithExec([]string{ "drone", "template", "add", "--namespace", namespace, "--name", name, "--data", fmt.Sprintf("@%s", name), }). + ExitCode(ctx) + + _, err := droneTemplates. WithExec([]string{ "drone", "template", "update", "--namespace", namespace, "--name", name, "--data", fmt.Sprintf("@%s", name), }).