build a container from nix
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Quentin 2023-09-26 09:32:28 +02:00
parent ef67706cb4
commit 10bdee10cf
Signed by: quentin
GPG Key ID: E9602264D639FF68
1 changed files with 10 additions and 3 deletions

View File

@ -18,7 +18,7 @@
];
};
src = ./.;
bottin = pkgs.buildGoApplication {
guichet = pkgs.buildGoApplication {
pname = "guichet";
version = "0.1.0";
src = src;
@ -38,9 +38,16 @@
platforms = platforms.linux;
};
};
container = pkgs.dockerTools.buildImage {
name = "dxflrs/guichet";
config = {
Entrypoint = "${guichet}/bin/guichet";
};
};
in {
packages.x86_64-linux.bottin = bottin;
packages.x86_64-linux.default = bottin;
packages.x86_64-linux.guichet = guichet;
packages.x86_64-linux.container = container;
packages.x86_64-linux.default = guichet;
devShell.x86_64-linux = pkgs.mkShell { nativeBuildInputs = [ pkgs.go pkgs.gomod2nix ]; };
};