bust/uploadtemplate.sh

14 lines
352 B
Bash
Raw Permalink Normal View History

2022-10-29 18:03:36 +02:00
#!/bin/bash
2022-10-30 20:05:57 +01:00
function add_template() {
namespace=$1
name=$2
drone template add --namespace "${namespace}" --name "${name}" --data "@${name}" 2&> /dev/null || true
drone template update --namespace "${namespace}" --name "${name}" --data "@${name}"
}
add_template kjuulh dagger_go_template.yaml
add_template kjuulh gobin_default_template.yaml