dagger-drone-test/.drone.yml

40 lines
811 B
YAML
Raw Normal View History

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-28 23:51:49 +02:00
- name: "run-pipeline"
2022-10-29 00:01:01 +02:00
image: dagger-test-builder:${DRONE_COMMIT}
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
depends_on:
- "build"
commands:
2022-10-28 23:56:45 +02:00
- "./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: {}