mentorenwahl/.drone.yml

30 lines
588 B
YAML
Raw Normal View History

2022-01-10 11:52:49 +00:00
---
kind: pipeline
type: docker
name: default
steps:
- name: sql
image: python:alpine
commands:
- apk add libecpg-dev --no-cache
- pip3 install pgsanity
- cd docker/backend/
- find -name "*.sql" | xargs pgsanity
2022-01-10 11:52:49 +00:00
- name: backend
2022-01-10 12:43:23 +00:00
image: docker:dind
2022-01-10 12:25:59 +00:00
volumes:
- name: dockersock
path: /var/run/docker.sock
2022-01-10 12:16:48 +00:00
commands:
- cp .example.env .env
2022-01-10 12:43:23 +00:00
- cd docker/
- docker build --build-arg BUILD_ENV=development backend
2022-01-10 12:51:13 +00:00
depends_on:
- sql
2022-01-10 12:25:59 +00:00
volumes:
- name: dockersock
host:
path: /var/run/docker.sock