Make Manual Channel
This commit is contained in:
27
flake.nix
27
flake.nix
@@ -106,16 +106,9 @@
|
|||||||
partitions = 1;
|
partitions = 1;
|
||||||
partitionType = "count";
|
partitionType = "count";
|
||||||
});
|
});
|
||||||
} // lib.optionalAttrs (system == "x86_64-linux") {
|
|
||||||
# NB: cargo-tarpaulin only supports x86_64 systems
|
newalan-docker = let
|
||||||
# Check code coverage (note: this will not upload coverage anywhere)
|
image = pkgs.dockerTools.buildImage {
|
||||||
newalan-coverage = craneLib.cargoTarpaulin (commonArgs // {
|
|
||||||
inherit cargoArtifacts;
|
|
||||||
});
|
|
||||||
|
|
||||||
newalan-docker = pkgs.releaseTools.sourceTarball {
|
|
||||||
name = "New Alan Docker Image";
|
|
||||||
src = pkgs.dockerTools.buildImage {
|
|
||||||
name = "newalan";
|
name = "newalan";
|
||||||
tag = "latest";
|
tag = "latest";
|
||||||
|
|
||||||
@@ -125,9 +118,21 @@
|
|||||||
pathsToLink = [ "/bin" ];
|
pathsToLink = [ "/bin" ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
in pkgs.releaseTools.channel {
|
||||||
|
name = "New Alan Docker Image";
|
||||||
|
constituents = [
|
||||||
|
# image
|
||||||
|
];
|
||||||
|
src = image;
|
||||||
};
|
};
|
||||||
|
} // lib.optionalAttrs (system == "x86_64-linux") {
|
||||||
|
# NB: cargo-tarpaulin only supports x86_64 systems
|
||||||
|
# Check code coverage (note: this will not upload coverage anywhere)
|
||||||
|
newalan-coverage = craneLib.cargoTarpaulin (commonArgs // {
|
||||||
|
inherit cargoArtifacts;
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
packages.default = newalan;
|
packages.default = newalan;
|
||||||
|
|
||||||
apps.default = flake-utils.lib.mkApp {
|
apps.default = flake-utils.lib.mkApp {
|
||||||
|
|||||||
Reference in New Issue
Block a user