diff --git a/.drone.yml b/.drone.yml index 3ed4d01..aab3625 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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 diff --git a/docker/backend/Dockerfile b/docker/backend/Dockerfile index 947b275..aef0230 100644 --- a/docker/backend/Dockerfile +++ b/docker/backend/Dockerfile @@ -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" ]