Add cargo audit to rust
All checks were successful
ci/woodpecker/push/rsync Pipeline was successful
ci/woodpecker/push/rust Pipeline was successful

This commit is contained in:
Kaan Barmore-Genç 2022-11-25 01:03:58 -05:00
parent b3804b481d
commit 50c5706f1a
Signed by: kaan
GPG key ID: B2E280771CD62FCF
2 changed files with 7 additions and 1 deletions

View file

@ -11,6 +11,10 @@ regular docker images and can be used anywhere.
Gives you access to `rsync`, `ssh`, and `scp` commands. Gives you access to `rsync`, `ssh`, and `scp` commands.
### rust
Rust stable toolchain, with `rustup`, `fmt`, `clippy`, `llvm-tools`, and `audit`.
--- ---
## Adding a new container ## Adding a new container

View file

@ -2,9 +2,11 @@ FROM alpine:latest
LABEL org.opencontainers.image.authors="kaan@bgenc.net" LABEL org.opencontainers.image.authors="kaan@bgenc.net"
RUN apk add --no-cache rustup \ RUN apk add --no-cache rustup build-base pkgconfig openssl-dev \
&& rustup-init -y && rustup-init -y
ENV PATH=/root/.cargo/bin:$PATH ENV PATH=/root/.cargo/bin:$PATH
RUN rustup component add llvm-tools-preview RUN rustup component add llvm-tools-preview
RUN cargo install cargo-audit