mentorenwahl/.drone.yml
Dominic Grimm 6473ca146f
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Fixed backend step
2022-01-23 09:18:48 +01:00

49 lines
950 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: shellcheck
image: koalaman/shellcheck-alpine
commands:
- cd scripts/
- find -name "*.sh" | xargs shellcheck
- name: env
image: alpine
commands:
- . .example.env
---
kind: pipeline
type: docker
name: backend
steps:
- name: ameba
image: veelenga/ameba
commands:
- cd docker/backend/
- ameba micrate/src/ src/
- name: pgsanity
image: boechat107/pgsanity
commands:
- cd docker/backend/db/
- find -name "*.sql" | xargs pgsanity
- 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
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
depends_on:
- default