custom image
This commit is contained in:
@@ -1,13 +1,16 @@
|
||||
{ config, lib, serverCfg }:
|
||||
let
|
||||
builder =
|
||||
{ image, secret ? null
|
||||
{ image, imageStream ? null
|
||||
, secret ? null
|
||||
, subdomain ? null, ip ? null, port ? 0
|
||||
, extraEnv ? { }, extraLabels ? { }, extraOptions ? [ ]
|
||||
, overrides ? { }
|
||||
}:
|
||||
let base = {
|
||||
inherit image;
|
||||
image = if imageStream != null then "${imageStream.imageName}:${imageStream.imageTag}"
|
||||
else image;
|
||||
imageStream = imageStream;
|
||||
|
||||
environmentFiles = if secret!=null then [ config.sops.secrets."${lib.toUpper secret}".path ] else [];
|
||||
environment = {} // extraEnv;
|
||||
|
||||
Reference in New Issue
Block a user