dj-embe/.drone.yml
Yanis Rigaudeau 857812a58c
Some checks failed
continuous-integration/drone/push Build is failing
add test stage
2023-09-22 00:51:34 +02:00

41 lines
780 B
YAML

kind: pipeline
type: docker
name: dj-embe
steps:
- name: check
image: docker:24.0.6-cli
privileged: true
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- docker build --target check .
- name: test
image: docker:24.0.6-cli
privileged: true
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- docker build --target test .
- name: deploy
image: docker/compose:alpine-1.29.2
privileged: true
volumes:
- name: docker-socket
path: /var/run/docker.sock
commands:
- docker-compose build
- docker-compose up -d
when:
branch:
- main
volumes:
- name: docker-socket
host:
path: /var/run/docker.sock