feat: reduces docker image size
This commit is contained in:
@@ -15,7 +15,7 @@ jobs:
|
||||
# this assumes that you have created a personal access token
|
||||
# (PAT) and configured it as a GitHub action secret named
|
||||
# `MY_RELEASE_PLEASE_TOKEN` (this secret name is not important).
|
||||
# token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
||||
token: ${{ secrets.MY_RELEASE_PLEASE_TOKEN }}
|
||||
# this is a built-in strategy in release-please, see "Action Inputs"
|
||||
# for more options
|
||||
release-type: simple
|
||||
|
||||
21
flake.nix
21
flake.nix
@@ -13,11 +13,28 @@
|
||||
pkgsFor =
|
||||
system:
|
||||
nixpkgs.legacyPackages.${system}.extend (
|
||||
nixpkgs.lib.composeManyExtensions ([ ])
|
||||
nixpkgs.lib.composeManyExtensions ([ dockerOverlay ])
|
||||
# nixpkgs.lib.composeManyExtensions ([ ] ++ builtins.attrValues self.overlays)
|
||||
);
|
||||
eachSystem = f: nixpkgs.lib.genAttrs supportedSystems (system: f (pkgsFor system));
|
||||
dockerOverlay = _final: prev: {
|
||||
|
||||
scripts = prev.callPackage ./scripts { };
|
||||
|
||||
# gitMinimal still ships with perl and python
|
||||
gitReallyMinimal =
|
||||
(prev.git.override {
|
||||
perlSupport = false;
|
||||
pythonSupport = false;
|
||||
withManual = false;
|
||||
withpcre2 = false;
|
||||
}).overrideAttrs
|
||||
(_: {
|
||||
# installCheck is broken when perl is disabled
|
||||
doInstallCheck = false;
|
||||
});
|
||||
|
||||
};
|
||||
treefmtEval = eachSystem (pkgs: inputs.treefmt-nix.lib.evalModule pkgs ./treefmt.nix);
|
||||
in
|
||||
{
|
||||
@@ -41,7 +58,7 @@
|
||||
pkgs.nix
|
||||
pkgs.cacert
|
||||
pkgs.curl
|
||||
pkgs.git
|
||||
pkgs.gitReallyMinimal
|
||||
pkgs.gnutar
|
||||
pkgs.gzip
|
||||
pkgs.gnused
|
||||
|
||||
2
scripts/deploy.sh
Normal file
2
scripts/deploy.sh
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/usr/bin/env bash
|
||||
set -Eeuo pipefail
|
||||
Reference in New Issue
Block a user