mentorenwahl/.drone.yml
Dominic Grimm 32da4f2e66
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
Fixed ci
2022-02-16 22:07:21 +01:00

96 lines
1.9 KiB
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: shellcheck
image: koalaman/shellcheck-alpine
commands:
- cd scripts/
- find -name "*.sh" | xargs shellcheck
- name: markdownlint
image: markdownlint/markdownlint
commands:
- cd docs/
- find -name "*.md" | xargs mdl
- name: docs
image: michaelfbryan/mdbook-docker-image
commands:
- cd docs/
- mdbook build
depends_on:
- markdownlint
---
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: deps
image: crystallang/crystal:1.3-alpine
volumes:
- name: lib
path: /drone/src/docker/backend/lib
commands:
- cd docker/backend/
- shards install
- name: documentation
image: crystallang/crystal:1.3-alpine
volumes:
- name: lib
path: /drone/src/docker/backend/lib
commands:
- cd docker/backend/
- make docs
depends_on:
- ameba
- deps
- 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
volumes:
- name: lib
temp: {}
- name: dockersock
host:
path: /var/run/docker.sock
---
kind: pipeline
type: docker
name: frontend
steps:
- 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
volumes:
- name: dockersock
host:
path: /var/run/docker.sock