bust/templates/uploadtemplate.sh
kjuulh aef05e5fee
All checks were successful
continuous-integration/drone/tag Build is passing
continuous-integration/drone/push Build is passing
remove redundant
2022-10-31 22:04:59 +01:00

15 lines
404 B
Bash
Executable File

#!/bin/bash
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 bust_gobin_template.yaml
add_template kjuulh bust_gobin_default_template.yaml
add_template kjuulh bust_docker_template.yaml