Add deny checks

This commit is contained in:
Matteo Settenvini 2022-08-01 00:20:52 +02:00
parent e1b6017f06
commit 7f48c6cfa4
Signed by: matteo
GPG key ID: 8576CC1AD97D42DF
6 changed files with 310 additions and 77 deletions

View file

@ -1,7 +1,7 @@
# SPDX-FileCopyrightText: 2021 Matteo Settenvini <matteo.settenvini@montecristosoftware.eu>
# SPDX-License-Identifier: CC0-1.0
FROM docker.io/rust:latest@sha256:490d4448c29f5407ee6eaf62f081a82b2741b4416c8e20aef7c01b68776802c2
FROM docker.io/rust:latest@sha256:4f1d43c216d995c2f734d7c682bc3e2abe3e110961cda4ae0743ce3944e673a2
ENV DEBIAN_FRONTEND noninteractive
@ -9,11 +9,17 @@ RUN apt update && \
apt install -y \
libssl-dev \
pkg-config \
python3-pip \
&& \
rm -rf /var/lib/apt/lists/*
RUN cargo install -f -- \
RUN pip3 install reuse
RUN rustup component add rustfmt
RUN cargo install --locked -f -- \
cargo-tarpaulin \
cargo-deny \
cargo2junit \
&& \
rm -rf "${HOME}/.cargo/registry" "${HOME}/.cargo/git"