updateloadtemplate
This commit is contained in:
parent
ec52c93af9
commit
51d7082a89
@ -14,7 +14,9 @@ steps:
|
|||||||
DOCKER_BUILDKIT: 1
|
DOCKER_BUILDKIT: 1
|
||||||
commands:
|
commands:
|
||||||
- "sleep 5"
|
- "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 }}'
|
- 'docker run -v /var/run/docker.sock:/var/run/docker.sock dagger-go-builder:${DRONE_COMMIT} ./dagger-go build {{ .input.imageTag | default $imageTag }}'
|
||||||
|
|
||||||
services:
|
services:
|
||||||
|
5
uploadtemplate.sh
Normal file → Executable file
5
uploadtemplate.sh
Normal file → Executable 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
|
||||||
|
Loading…
Reference in New Issue
Block a user