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:
parent
5752476184
commit
638b9d1c33
2 changed files with 5 additions and 3 deletions
2
.github/workflows/dockerhub-description.yml
vendored
2
.github/workflows/dockerhub-description.yml
vendored
|
@ -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 }}
|
||||
|
|
|
@ -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)"
|
||||
|
||||
|
|
Loading…
Reference in a new issue