mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 10:14:13 +02:00
multi-arch docker
This commit is contained in:
parent
e02a9de1fa
commit
3dce5a8a07
3 changed files with 156 additions and 28 deletions
20
flake.nix
20
flake.nix
|
|
@ -5,6 +5,10 @@
|
|||
rust-overlay.url = "github:oxalica/rust-overlay";
|
||||
npmlock2nix.url = "github:nix-community/npmlock2nix";
|
||||
npmlock2nix.flake = false;
|
||||
flocken = {
|
||||
url = "github:mirkolenz/flocken/v2";
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
};
|
||||
|
||||
outputs = {
|
||||
|
|
@ -13,6 +17,7 @@
|
|||
utils,
|
||||
rust-overlay,
|
||||
npmlock2nix,
|
||||
flocken,
|
||||
}:
|
||||
utils.lib.eachDefaultSystem (system: let
|
||||
overlays = [
|
||||
|
|
@ -28,12 +33,27 @@
|
|||
pkgs = (import nixpkgs) {
|
||||
inherit system overlays;
|
||||
};
|
||||
inherit (flocken.legacyPackages.${system}) mkDockerManifest;
|
||||
in rec {
|
||||
packages = rec {
|
||||
node_modules = pkgs.demostf-frontend-node-modules;
|
||||
frontend = pkgs.demostf-frontend;
|
||||
docker = pkgs.demostf-frontend-docker;
|
||||
default = frontend;
|
||||
|
||||
dockerManifest = mkDockerManifest {
|
||||
tags = ["latest"];
|
||||
registries = {
|
||||
"docker.io" = {
|
||||
enable = true;
|
||||
repo = "demostf/frontend";
|
||||
username = "$DOCKERHUB_USERNAME";
|
||||
password = "$DOCKERHUB_TOKEN";
|
||||
};
|
||||
};
|
||||
version = "1.0.0";
|
||||
images = with self.packages; [x86_64-linux.docker aarch64-linux.docker];
|
||||
};
|
||||
};
|
||||
devShells.default = pkgs.mkShell {
|
||||
OPENSSL_NO_VENDOR = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue