fix: Install cargo deny in ci image (#5317)
* fix: install cargo deny in ci image * fix: Update docker/Dockerfile.ci Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com> * fix: Apply suggestions from code review Co-authored-by: Marco Neumann <marco@crepererum.net> Co-authored-by: Carol (Nichols || Goulding) <193874+carols10cents@users.noreply.github.com> Co-authored-by: Marco Neumann <marco@crepererum.net> Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>pull/24376/head
parent
fc1870ff76
commit
38a0cdbb4a
|
|
@ -123,7 +123,7 @@ jobs:
|
|||
- cache_restore
|
||||
- run:
|
||||
name: Install cargo-deny
|
||||
command: cargo install --force cargo-deny
|
||||
command: cargo install cargo-deny
|
||||
- run:
|
||||
name: cargo-deny Checks
|
||||
command: cargo deny check -s
|
||||
|
|
|
|||
|
|
@ -58,9 +58,10 @@ RUN groupadd -g 1500 rust \
|
|||
&& echo 'rust ALL=NOPASSWD: ALL' >> /etc/sudoers.d/10-rust \
|
||||
&& echo 'Defaults env_keep += "DEBIAN_FRONTEND"' >> /etc/sudoers.d/env_keep
|
||||
|
||||
# Ensure we are ready with cargo hakari
|
||||
RUN cargo install cargo-hakari
|
||||
RUN chown -R rust:rust /usr/local/cargo
|
||||
# Ensure we are ready with cargo hakari and cargo deny
|
||||
RUN cargo install cargo-hakari && \
|
||||
cargo install cargo-deny && \
|
||||
chown -R rust:rust /usr/local/cargo
|
||||
|
||||
USER rust
|
||||
ENV PATH /home/rust/.local/bin:/home/rust/bin:${PATH}
|
||||
|
|
|
|||
Loading…
Reference in New Issue