Skip to content

Commit

Permalink
chore: prevent Renovate trying to change MSRV version (#81)
Browse files Browse the repository at this point in the history
Hide the Rust MSRV version behind a Docker build argument variable, so
Renovate does not know to update it.
  • Loading branch information
intgr committed Apr 9, 2024
1 parent 6bd9b1b commit 2715e0b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion varia/Dockerfile.tests
@@ -1,6 +1,7 @@
# This Dockerfile is mostly for CI, see .github/workflows/tests.yml
# Run with --build-arg=channel=stable OR --build-arg=channel=nightly (default)
ARG rust=nightly
ARG msrv=1.60.0

# Using Dockerfile conditionals
#### Base image for STABLE
Expand All @@ -12,7 +13,7 @@ FROM rustlang/rust:nightly AS cargo-base-nightly
ENV components="" buildflags="--tests --examples"

#### Base image for MSRV
FROM rust:1.60.0 AS cargo-base-msrv
FROM rust:$msrv AS cargo-base-msrv
# Don't build tests: dev-dependencies are incompatible with MSRV.
ENV components="" buildflags=""

Expand Down

0 comments on commit 2715e0b

Please sign in to comment.