mentorenwahl/.drone.yml

101 lines
2.4 KiB
YAML

# Mentorenwahl: A fullstack application for assigning mentors to students based on their whishes.
# Copyright (C) 2022 Dominic Grimm
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
---
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: 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