From 508c1e202565c1e229bb02a0c522b287d2e2affd Mon Sep 17 00:00:00 2001 From: kjuulh Date: Sat, 8 Apr 2023 12:30:48 +0200 Subject: [PATCH] feat: fix sh pipeline not running to completion --- shuttletask/ci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shuttletask/ci.go b/shuttletask/ci.go index ff0c50b..c076131 100644 --- a/shuttletask/ci.go +++ b/shuttletask/ci.go @@ -72,7 +72,7 @@ func Ci(ctx context.Context) error { _, err := droneTemplates. WithExec([]string{ - "drone", "template", "add", "--namespace", namespace, "--name", name, "--data", fmt.Sprintf("@%s", name), "||", "true", + "sh", "-c", fmt.Sprintf("drone template add --namespace %s --name %s --data @%s || true", namespace, name, name), }). WithExec([]string{ "drone", "template", "update", "--namespace", namespace, "--name", name, "--data", fmt.Sprintf("@%s", name),