summaryrefslogtreecommitdiff
path: root/nix/containerize.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nix/containerize.nix')
-rw-r--r--nix/containerize.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/nix/containerize.nix b/nix/containerize.nix
index 8175e17..b936b90 100644
--- a/nix/containerize.nix
+++ b/nix/containerize.nix
@@ -1,17 +1,21 @@
{ lib, dockerTools }:
+
let
containerize =
- teawie-bot:
+ chill-discord-bot:
+
let
- inherit (teawie-bot.passthru) crossPkgs;
+ inherit (chill-discord-bot.passthru) crossPkgs;
architecture = crossPkgs.go.GOARCH;
in
+
dockerTools.buildLayeredImage {
- name = "teawie-bot";
+ name = "chill-discord-bot";
tag = "latest-${architecture}";
contents = [ dockerTools.caCertificates ];
- config.Cmd = [ (lib.getExe teawie-bot) ];
+ config.Cmd = [ (lib.getExe chill-discord-bot) ];
inherit architecture;
};
in
+
containerize