Unverified Commit fea0c3b6 authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Add semver checks to docker image (#2530)

parent f0362232
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -138,6 +138,10 @@ ARG cargo_wasi_version=0.1.27
ARG rust_nightly_version
RUN cargo +${rust_nightly_version} -Z sparse-registry install cargo-wasi --locked --version ${cargo_wasi_version}

FROM install_rust AS cargo_semver_checks
ARG cargo_semver_checks_version=0.19.0
ARG rust_nightly_version
RUN cargo +${rust_nightly_version} -Z sparse-registry install cargo-semver-checks --locked --version ${cargo_semver_checks_version}
#
# Final image
#
@@ -174,6 +178,7 @@ COPY --chown=build:build --from=wasm_pack /opt/cargo/bin/wasm-pack /opt/cargo/bi
COPY --chown=build:build --from=wasmtime /opt/wasmtime /opt/cargo/bin/wasmtime
COPY --chown=build:build --from=cargo_wasi /opt/cargo/bin/cargo-wasi /opt/cargo/bin/cargo-wasi
COPY --chown=build:build --from=install_rust /opt/rustup /opt/rustup
COPY --chown=build:build --from=cargo_semver_checks /opt/cargo/bin/cargo-semver-checks /opt/cargo/bin/cargo-semver-checks
COPY --chown=build:build --from=musl_toolchain /usr/local/musl/ /usr/local/musl/
ENV PATH=$PATH:/usr/local/musl/bin/
ENV PATH=/opt/cargo/bin:$PATH \
+1 −0
Original line number Diff line number Diff line
@@ -17,3 +17,4 @@ python3 --version
rustc +"${RUST_NIGHTLY_VERSION}" --version
rustc --version
sdk-versioner --version
cargo semver-checks --version