mentorenwahl/.drone.yml
Dominic Grimm 3cf2a580c4
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build encountered an error
Added documentation step
2022-02-07 19:04:02 +01:00

75 lines
1.6 KiB
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: shellcheck
image: koalaman/shellcheck-alpine
commands:
- cd scripts/
- find -name "*.sh" | xargs shellcheck
---
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:
- pgsanity docker/backend/db/**/*.sql
- name: documentation
image: crystal-lang/crystal:latest-alpine
commands:
- cd docker/backend/
- crystal docs
- name: build
image: tmaier/docker-compose
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- cp .example.env .env
- docker-compose build --build-arg BUILD_ENV=development backend
depends_on:
- ameba
- pgsanity
- documentation
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
depends_on:
- default
---
kind: pipeline
type: docker
name: frontend
steps:
- name: prettier
image: elnebuloso/prettier
commands:
- cd docker/frontend/
- prettier --ignore-path .gitignore --check --plugin-search-dir=. .
- name: build
image: tmaier/docker-compose
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- cp .example.env .env
- docker-compose build --build-arg BUILD_ENV=development frontend
depends_on:
- prettier
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
depends_on:
- default