mentorenwahl/.drone.yml
Dominic Grimm 43cc1b9cb9
Some checks reported errors
continuous-integration/drone/push Build was killed
Added frontend ci pipeline
2022-01-29 16:56:37 +01:00

77 lines
1.5 KiB
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: tmaier/docker-compose
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- cp .example.env .env
- cd docker/
- docker-compose build --build-arg BUILD_ENV=development backend
depends_on:
- ameba
- pgsanity
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 . -c
- name: frontend
image: tmaier/docker-compose
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- cp .example.env .env
- cd docker/
- docker-compose build --build-arg BUILD_ENV=development frontend
depends_on:
- prettier
volumes:
- name: dockersock
host:
path: /var/run/docker.sock
depends_on:
- backend