gitea-release/docker.nix

22 lines
473 B
Nix
Raw Permalink Normal View History

2020-05-31 19:33:39 +00:00
{ system ? builtins.currentSystem }:
let
pkgs = import <nixpkgs> { };
callPackage = pkgs.lib.callPackageWith pkgs;
gitea-release = callPackage ./default.nix { };
dockerImage = pkg:
pkgs.dockerTools.buildLayeredImage {
name = "xena/gitea-release";
tag = "latest";
2020-05-31 19:33:39 +00:00
2020-05-31 20:00:26 +00:00
contents = [ pkgs.cacert pkg ];
2020-05-31 19:33:39 +00:00
config = {
2020-05-31 19:56:04 +00:00
Cmd = [ "/bin/gitea-release" "drone-plugin" ];
2020-05-31 19:33:39 +00:00
WorkingDir = "/";
};
};
in dockerImage gitea-release