mentorenwahl/.drone.yml

37 lines
729 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: ameba
image: veelenga/ameba
commands:
- ameba
- name: pgsanity
image: boechat107/pgsanity
commands:
- 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