summaryrefslogtreecommitdiff
path: root/nix/containerize.nix
blob: d83b99871dfdbdfea156dc3a2f0a76743919344c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ lib, dockerTools }:
let
  containerize =
    nixpkgs-tracker-bot:
    let
      inherit (nixpkgs-tracker-bot.passthru) crossPkgs;
      architecture = crossPkgs.go.GOARCH;
    in
    dockerTools.buildLayeredImage {
      name = "nixpkgs-tracker-bot";
      tag = "latest-${architecture}";
      config.Cmd = [ (lib.getExe nixpkgs-tracker-bot) ];
      inherit architecture;
    };
in
containerize