Added shellcheck to ci

This commit is contained in:
Dominic Grimm 2022-01-10 13:55:31 +01:00
parent 5e87dbb787
commit 22f6a6b785
2 changed files with 5 additions and 12 deletions

View file

@ -4,13 +4,16 @@ type: docker
name: default
steps:
- name: sql
- name: pgsanity
image: python:alpine
commands:
- apk add libecpg-dev --no-cache
- pip3 install pgsanity
- cd docker/backend/
- find -name "*.sql" | xargs pgsanity
- name: shellcheck
image: koalaman/shellcheck
commands:
- find -name "*.sh" | xargs shellcheck
- name: backend
image: docker:dind
volumes:
@ -20,8 +23,6 @@ steps:
- cp .example.env .env
- cd docker/
- docker build --build-arg BUILD_ENV=development backend
depends_on:
- sql
volumes:
- name: dockersock

View file

@ -1,10 +1,3 @@
# FROM python:alpine3.15 as pgsanity
# WORKDIR /app
# RUN apk add libecpg-dev --no-cache
# RUN pip3 install pgsanity
# COPY ./db ./db
# RUN find -name "*.sql" | xargs pgsanity
FROM crystallang/crystal:latest-alpine as micrate-deps
WORKDIR /app
COPY ./micrate/shard.yml ./micrate/shard.lock ./
@ -39,7 +32,6 @@ RUN . ./scripts/build.sh ${BUILD_ENV}
FROM scratch as runner
COPY --from=micrate-builder /app/bin/micrate .
COPY --from=builder /app/bin/mw .
# COPY --from=pgsanity /app/db ./db
COPY ./db ./db
EXPOSE 8080
CMD [ "/mw" ]