Skip to content
Snippets Groups Projects
Verified Commit 53bfa411 authored by v-lafeychine's avatar v-lafeychine
Browse files

fix(ci): Fix docs publish + Improve dockerTools use

parent 7fe81833
No related branches found
No related tags found
No related merge requests found
Pipeline #10604 passed with stage
in 27 seconds
ARG RUST_VERSION=1.63.0
FROM rust:${RUST_VERSION}-alpine
RUN apk add --no-cache openssh-client
RUN rustup toolchain install ${RUST_VERSION} --component clippy rustfmt rust-docs
RUN rustup default ${RUST_VERSION}
......@@ -37,24 +37,22 @@
in pkgs.dockerTools.buildImage {
name = "proost-ci";
config.Entrypoint = [ "${pkgs.dockerTools.binSh}/bin/sh" "-c" ];
copyToRoot = pkgs.buildEnv {
name = "proost-dependencies";
paths = with pkgs; [ bash coreutils gcc openssh rust-ci ];
paths = (with pkgs; [ coreutils gcc openssh rust-ci ])
++ (with pkgs.dockerTools; [ binSh caCertificates fakeNss ]);
pathsToLink = [ "/bin" "/etc" ];
};
runAsRoot = "mkdir /tmp";
config = {
Env =
[ "SSL_CERT_FILE=${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt" ];
Entrypoint = [ "${pkgs.bash}/bin/sh" "-c" ];
};
};
};
devShells.default = pkgs.mkShell {
name = "proost-dev";
packages = [ rust.default rust.rust-analyzer ];
packages = [ rust.default rust.rust-analyzer ];
};
});
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment