mentorenwahl/.drone.yml

31 lines
649 B
YAML
Raw Normal View History

2022-01-10 11:52:49 +00:00
---
kind: pipeline
type: docker
name: default
steps:
2022-01-10 12:55:31 +00:00
- name: pgsanity
image: python:alpine
commands:
- apk add libecpg-dev --no-cache
- pip3 install pgsanity
- find -name "*.sql" | xargs pgsanity
2022-01-10 12:55:31 +00:00
- name: shellcheck
image: koalaman/shellcheck
commands:
- find -name "*.sh" | xargs shellcheck
2022-01-10 11:52:49 +00:00
- name: backend
2022-01-10 12:43:23 +00:00
image: docker:dind
2022-01-10 12:25:59 +00:00
volumes:
- name: dockersock
path: /var/run/docker.sock
2022-01-10 12:16:48 +00:00
commands:
- cp .example.env .env
2022-01-10 12:43:23 +00:00
- cd docker/
- docker build --build-arg BUILD_ENV=development backend
2022-01-10 12:25:59 +00:00
volumes:
- name: dockersock
host:
path: /var/run/docker.sock