feat: fix sh pipeline not running to completion
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Kasper Juul Hermansen 2023-04-08 12:30:48 +02:00
parent 9cd7004f10
commit 508c1e2025
Signed by: kjuulh
GPG Key ID: 57B6E1465221F912

View File

@ -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),