Skip to content

Commit

Permalink
Update image to latest cargo-deny (#24)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle authored Oct 21, 2020
1 parent 4cf1075 commit 73a3bfe
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ jobs:
run: docker run -v ${PWD}/test:/test test-cargo-deny --manifest-path test/Cargo.toml list

- name: Run check
run: docker run -v ${PWD}/test:/test test-cargo-deny --manifest-path test/Cargo.toml check
run: docker run -v ${PWD}/test:/test test-cargo-deny --manifest-path test/Cargo.toml --all-features check
14 changes: 7 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
FROM rust:alpine
FROM rust:1.47-alpine3.12

RUN apk add --no-cache curl
ENV deny_version=0.8.1

RUN curl --silent -L --output cargo-deny.tar.gz https://github.com/EmbarkStudios/cargo-deny/releases/download/0.7.3/cargo-deny-0.7.3-x86_64-unknown-linux-musl.tar.gz
RUN tar -xzvf cargo-deny.tar.gz -C . --strip-components=1
RUN set -eux; \
apk update; \
apk add curl; \
curl --silent -L https://github.com/EmbarkStudios/cargo-deny/releases/download/$deny_version/cargo-deny-$deny_version-x86_64-unknown-linux-musl.tar.gz | tar -xzv -C /usr/bin --strip-components=1;

COPY entrypoint.sh /entrypoint.sh

ENTRYPOINT ["/entrypoint.sh"]
ENTRYPOINT ["cargo-deny"]
5 changes: 0 additions & 5 deletions entrypoint.sh

This file was deleted.

0 comments on commit 73a3bfe

Please sign in to comment.