--- 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: api steps: - name: ameba image: veelenga/ameba commands: - cd docker/api/ - ameba micrate/src/ src/ - name: pgsanity image: boechat107/pgsanity commands: - cd docker/api/db/ - find -name "*.sql" | xargs pgsanity - name: api image: docker:dind volumes: - name: dockersock path: /var/run/docker.sock commands: - cp .example.env .env - cd docker/ - docker build --build-arg BUILD_ENV=development api depends_on: - ameba - pgsanity volumes: - name: dockersock host: path: /var/run/docker.sock depends_on: - default