without dind

This commit is contained in:
Kasper Juul Hermansen 2022-10-30 20:05:57 +01:00
parent a42cce9b8c
commit 7cb736fa33
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 11 additions and 3 deletions

View File

@ -24,7 +24,6 @@ func main() {
}, },
BuildPath: "main.go", BuildPath: "main.go",
BinName: "dagger-go", BinName: "dagger-go",
BaseImage: "harbor.front.kjuulh.io/docker-proxy/library/docker:dind",
}). }).
Execute(ctx) Execute(ctx)

View File

@ -1,4 +1,13 @@
#!/bin/bash #!/bin/bash
drone template add --namespace kjuulh --name dagger_go_template.yaml --data @dagger_go_template.yaml || true function add_template() {
drone template update --namespace kjuulh --name dagger_go_template.yaml --data @dagger_go_template.yaml 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