diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..305f86e --- /dev/null +++ b/.drone.yml @@ -0,0 +1,23 @@ +kind: pipeline +type: kubernetes +name: default + +steps: + - name: test + image: docker.io/rust:1.67-alpine + commands: + - cargo test --verbose --all + - name: build + image: docker.io/tmaier/docker-compose + volumes: + - name: dockersock + path: /var/run/docker.sock + commands: + - make ci + depends_on: + - test + +volumes: + - name: dockersock + host: + path: /var/run/docker.sock diff --git a/backend/Dockerfile b/backend/Dockerfile index 4234017..0f0abcb 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -15,7 +15,7 @@ WORKDIR /usr/src/templates COPY ./templates . RUN minify . -r -o . -FROM docker.io/lukemathwalker/cargo-chef:latest-rust-1.67.0 as chef +FROM docker.io/lukemathwalker/cargo-chef:latest-rust-1.67 as chef FROM chef as diesel RUN cargo install diesel_cli --no-default-features --features postgres