bust/templates/uploadtemplate.sh
kjuulh 6c885ec33c
All checks were successful
continuous-integration/drone/push Build is passing
with rust template
2022-11-06 00:39:03 +01:00

15 lines
504 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_default_template.yaml
add_template kjuulh bust_docker_template.yaml
add_template kjuulh bust_gobin_template.yaml
add_template kjuulh bust_gobin_default_template.yaml
add_template kjuulh bust_rustbin_default_template.yaml