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 name: default
steps: steps:
- name: sql - name: pgsanity
image: python:alpine image: python:alpine
commands: commands:
- apk add libecpg-dev --no-cache - apk add libecpg-dev --no-cache
- pip3 install pgsanity - pip3 install pgsanity
- cd docker/backend/
- find -name "*.sql" | xargs pgsanity - find -name "*.sql" | xargs pgsanity
- name: shellcheck
image: koalaman/shellcheck
commands:
- find -name "*.sh" | xargs shellcheck
- name: backend - name: backend
image: docker:dind image: docker:dind
volumes: volumes:
@ -20,8 +23,6 @@ steps:
- cp .example.env .env - cp .example.env .env
- cd docker/ - cd docker/
- docker build --build-arg BUILD_ENV=development backend - docker build --build-arg BUILD_ENV=development backend
depends_on:
- sql
volumes: volumes:
- name: dockersock - 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 FROM crystallang/crystal:latest-alpine as micrate-deps
WORKDIR /app WORKDIR /app
COPY ./micrate/shard.yml ./micrate/shard.lock ./ COPY ./micrate/shard.yml ./micrate/shard.lock ./
@ -39,7 +32,6 @@ RUN . ./scripts/build.sh ${BUILD_ENV}
FROM scratch as runner FROM scratch as runner
COPY --from=micrate-builder /app/bin/micrate . COPY --from=micrate-builder /app/bin/micrate .
COPY --from=builder /app/bin/mw . COPY --from=builder /app/bin/mw .
# COPY --from=pgsanity /app/db ./db
COPY ./db ./db COPY ./db ./db
EXPOSE 8080 EXPOSE 8080
CMD [ "/mw" ] CMD [ "/mw" ]