Added frontend ci pipeline
Some checks reported errors
continuous-integration/drone/push Build was killed

This commit is contained in:
Dominic Grimm 2022-01-29 16:56:37 +01:00
parent 35080c3a6a
commit 43cc1b9cb9

View file

@ -29,14 +29,14 @@ steps:
- cd docker/backend/db/
- find -name "*.sql" | xargs pgsanity
- name: backend
image: docker:dind
image: tmaier/docker-compose
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- cp .example.env .env
- cd docker/
- docker build --build-arg BUILD_ENV=development backend
- docker-compose build --build-arg BUILD_ENV=development backend
depends_on:
- ameba
- pgsanity
@ -46,3 +46,31 @@ volumes:
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