mentorenwahl/.drone.yml

40 lines
819 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: ameba
image: veelenga/ameba
commands:
- cd docker/backend/
- ameba
- name: pgsanity
image: python:alpine
commands:
- apk add libecpg-dev --no-cache
- pip3 install pgsanity
- find -name "*.sql" | xargs pgsanity
- name: shellcheck
image: koalaman/shellcheck-alpine
commands:
- find -name "*.sh" | xargs shellcheck
- name: backend
image: docker:dind
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- cp .example.env .env
- cd docker/
- docker build --build-arg BUILD_ENV=development backend
depends_on:
- ameba
- pgsanity
- shellcheck
volumes:
- name: dockersock
host:
path: /var/run/docker.sock