CI fixes: dockerhub description and linting (#68)

- Github workflow: upgrade `peter-evans/dockerhub-description` to `v2.4.3`
- Dockerfile: fix: lint stage not running, changed from `ENTRYPOINT` to `RUN`
- Dockerfile: fix: install clippy for build platform
This commit is contained in:
Quentin McGaw 2021-07-17 12:40:58 -07:00 committed by GitHub
parent 5752476184
commit 638b9d1c33
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View file

@ -12,7 +12,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v2.3.4
- name: Docker Hub Description
uses: peter-evans/dockerhub-description@2.4.2
uses: peter-evans/dockerhub-description@v2.4.3
with:
username: mindflavor
password: ${{ secrets.DOCKERHUB_PASSWORD }}

View file

@ -80,6 +80,9 @@ RUN rustup target add "$(cat /tmp/rusttarget)"
# Copy .cargo/config for cross build configuration
COPY .cargo ./.cargo
# Install Clippy for build platform
RUN rustup component add clippy
# Install dependencies
RUN echo 'fn main() {}' > src/main.rs && \
RUSTFLAGS="$(cat /tmp/rustflags)" \
@ -93,8 +96,7 @@ RUN rm -r \
COPY . .
FROM base AS lint
ENTRYPOINT \
RUSTFLAGS="$(cat /tmp/rustflags)" \
RUN RUSTFLAGS="$(cat /tmp/rustflags)" \
CC="$(cat /tmp/musl)-gcc" \
cargo clippy --target "$(cat /tmp/rusttarget)"