updateloadtemplate

This commit is contained in:
Kasper Juul Hermansen 2022-10-29 18:03:36 +02:00
parent ec52c93af9
commit 51d7082a89
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
2 changed files with 7 additions and 2 deletions

View File

@ -14,7 +14,9 @@ steps:
DOCKER_BUILDKIT: 1
commands:
- "sleep 5"
- docker build -t dagger-go-builder:${DRONE_COMMIT} .
- mkdir -p tmp/dagger-go
- git clone "https://git.front.kjuulh.io/kjuulh/dagger-go.git" tmp/dagger-go
- docker build -t dagger-go-builder:${DRONE_COMMIT} -f tmp/dagger-go/Dockerfile .
- 'docker run -v /var/run/docker.sock:/var/run/docker.sock dagger-go-builder:${DRONE_COMMIT} ./dagger-go build {{ .input.imageTag | default $imageTag }}'
services:

5
uploadtemplate.sh Normal file → Executable file
View File

@ -1 +1,4 @@
drone template add --namespace kjuulh --name dagger_go_template.yaml --data @dagger_go_template.yaml
#!/bin/bash
drone template add --namespace kjuulh --name dagger_go_template.yaml --data @dagger_go_template.yaml || true
drone template update --namespace kjuulh --name dagger_go_template.yaml --data @dagger_go_template.yaml