2022-01-10 11:52:49 +00:00
|
|
|
---
|
|
|
|
kind: pipeline
|
|
|
|
type: docker
|
|
|
|
name: default
|
|
|
|
|
|
|
|
steps:
|
2022-01-10 12:59:03 +00:00
|
|
|
- name: ameba
|
|
|
|
image: veelenga/ameba
|
|
|
|
commands:
|
|
|
|
- cd docker/backend/
|
|
|
|
- ameba
|
2022-01-10 12:55:31 +00:00
|
|
|
- name: pgsanity
|
2022-01-10 12:50:42 +00:00
|
|
|
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:59:03 +00:00
|
|
|
depends_on:
|
|
|
|
- ameba
|
|
|
|
- pgsanity
|
|
|
|
- shellcheck
|
2022-01-10 12:25:59 +00:00
|
|
|
|
|
|
|
volumes:
|
|
|
|
- name: dockersock
|
|
|
|
host:
|
|
|
|
path: /var/run/docker.sock
|