2022-10-28 23:36:54 +02:00
|
|
|
type: docker
|
|
|
|
kind: pipeline
|
|
|
|
name: "drone-dagger-test"
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: "build"
|
2022-10-28 23:51:49 +02:00
|
|
|
image: harbor.front.kjuulh.io/docker-proxy/library/docker:dind
|
2022-10-28 23:52:56 +02:00
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
2022-10-28 23:51:49 +02:00
|
|
|
environment:
|
|
|
|
DOCKER_BUILDKIT: 1
|
2022-10-28 23:36:54 +02:00
|
|
|
commands:
|
2022-10-28 23:51:49 +02:00
|
|
|
- "sleep 5"
|
2022-10-29 00:01:01 +02:00
|
|
|
- docker build -t dagger-test-builder:${DRONE_COMMIT} .
|
2022-10-29 00:07:58 +02:00
|
|
|
- "docker run -v /var/run/docker.sock:/var/run/docker.sock dagger-test-builder:${DRONE_COMMIT} ./dagger https://github.com/kpenfound/greetings-api.git"
|
2022-10-28 23:51:49 +02:00
|
|
|
|
|
|
|
services:
|
|
|
|
- name: docker
|
|
|
|
image: docker:dind
|
|
|
|
privileged: true
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
path: /var/run
|
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
temp: {}
|