fully working docker image
Some checks failed
ci/woodpecker/push/woodpecker Pipeline failed

This commit is contained in:
Vivian 2022-12-03 15:19:25 +01:00
parent af41c85b1f
commit ee4e360799
2 changed files with 8 additions and 1 deletions

View file

@ -6,3 +6,5 @@ pipeline:
commands: commands:
- nix flake check - nix flake check
- nix build '.#mdbook-toc' - nix build '.#mdbook-toc'
- nix build '.#docker'

View file

@ -12,7 +12,12 @@
packages = rec { packages = rec {
docker = pkgs.dockerTools.buildLayeredImage { docker = pkgs.dockerTools.buildLayeredImage {
name = "mdbook-plus"; name = "mdbook-plus";
contents = mdbook-toc; contents = [
(pkgs.buildEnv {
name = "mdbook-env";
paths = with pkgs; [ busybox mdbook mdbook-toc ];
})
];
config.Cmd = [ "${pkgs.mdbook}/bin/mdbook" ]; config.Cmd = [ "${pkgs.mdbook}/bin/mdbook" ];
}; };
mdbook-toc = pkgs.rustPlatform.buildRustPackage rec { mdbook-toc = pkgs.rustPlatform.buildRustPackage rec {