gitea-attachements-proxy/docker.nix
Garionion b2eb57d24a
Some checks reported errors
continuous-integration/drone/push Build was killed
add flake support, build docker image with nix
2022-01-14 17:16:48 +01:00

22 lines
473 B
Nix

{ system ? builtins.currentSystem }:
let
pkgs = import <nixpkgs> { };
callPackage = pkgs.lib.callPackageWith pkgs;
gitea-release = callPackage ./package.nix { };
dockerImage = pkg:
pkgs.dockerTools.buildLayeredImage {
name = "xena/gitea-release";
tag = "latest";
contents = [ pkgs.cacert pkg ];
config = {
Cmd = [ "/bin/gitea-release" "drone-plugin" ];
WorkingDir = "/";
};
};
in dockerImage gitea-release