From 66fe384ae4cc8dc9be880cd850b8f5bc96c1fa0e Mon Sep 17 00:00:00 2001 From: Dominic Grimm Date: Sun, 12 Feb 2023 11:18:01 +0100 Subject: [PATCH] Update ci --- .drone.yml | 23 +++++++++++++++++++++++ backend/Dockerfile | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 .drone.yml 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