added base dagger_go_template.yaml

This commit is contained in:
Kasper Juul Hermansen 2022-10-29 17:26:01 +02:00
commit c87f0aab4c
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23

28
dagger_go_template.yaml Normal file
View File

@ -0,0 +1,28 @@
type: docker
kind: pipeline
name: "drone-dagger-test"
steps:
- name: "build"
image: harbor.front.kjuulh.io/docker-proxy/library/docker:dind
volumes:
- name: dockersock
path: /var/run
environment:
DOCKER_BUILDKIT: 1
commands:
- "sleep 5"
- docker build -t dagger-go-builder:${DRONE_COMMIT} .
- "docker run -v /var/run/docker.sock:/var/run/docker.sock dagger-go-builder:${DRONE_COMMIT} ./dagger-go production"
services:
- name: docker
image: docker:dind
privileged: true
volumes:
- name: dockersock
path: /var/run
volumes:
- name: dockersock
temp: {}