Skip to content

Commit

Permalink
fix: [noticket] Change wiki publish to tag releases
Browse files Browse the repository at this point in the history
  • Loading branch information
lx-wnk committed Jan 18, 2024
1 parent 92a599a commit d103fb5
Show file tree
Hide file tree
Showing 2 changed files with 148 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish_docs_to_wiki.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
regex: true
include: "docs/*.md"
- name: Upload Docs to Wiki
if: github.ref_name == 'main'
if: github.ref_type == 'tag'
uses: docker://decathlon/wiki-page-creator-action:latest
env:
GH_PAT: ${{ secrets.WIKI_ACTION_TOKEN_ServiceUser }}
Expand Down
147 changes: 147 additions & 0 deletions modules/options.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,147 @@
{ pkgs, lib, ... }:
#{ pkgs, config, inputs, lib, ... }:
let
in {
options.kellerkinder = {
# config.kellerkinder = {
enable = lib.mkOption {
type = lib.types.bool;
description = "Enables the Kellerkinder devenv environment";
default = true;
};

phpVersion = lib.mkOption {
type = lib.types.str;
description = "PHP Version";
default = "php81";
};

systemConfig = lib.mkOption {
type = lib.types.attrsOf lib.types.str;
description = "shopware system config settings";
default = { };
example = {
"foo.bar.testString" = "false";
};
};

additionalPhpConfig = lib.mkOption {
type = lib.types.str;
description = "Additional php.ini configuration";
default = "";
example = ''
memory_limit = 0
'';
};

additionalPhpExtensions = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = "Additional PHP extensions";
default = [ ];
example = [ "mailparse" ];
};

additionalVhostConfig = lib.mkOption {
type = lib.types.str;
description = "Additional vhost configuration";
default = "";
};

additionalServerAlias = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = "Additional server alias";
default = [ ];
example = [ "example.com" ];
};

enableElasticsearch = lib.mkOption {
type = lib.types.bool;
description = "Enables Elasticsearch";
default = false;
};

enableOpenSearch = lib.mkOption {
type = lib.types.bool;
description = "Enables OpenSearch";
default = false;
};

enableRabbitMq = lib.mkOption {
type = lib.types.bool;
description = "Enables RabbitMQ";
default = false;
};

importDatabaseDumps = lib.mkOption {
type = lib.types.listOf lib.types.str;
description = "List of links to be imported with command importdb";
default = [ ];
example = [
"http://localhost/dump.sql.gz"
"http://localhost/dump.sql"
];
};

documentRoot = lib.mkOption {
type = lib.types.str;
description = "Sets the docroot of caddy";
default = "public";
};

indexFile = lib.mkOption {
type = lib.types.str;
description = "Sets the caddy index file for the document root";
default = "index.php";
};

projectRoot = lib.mkOption {
type = lib.types.str;
description = "Root of the project as path from the file devenv.nix";
default = ".";
example = "project";
};

staticFilePaths = lib.mkOption {
type = lib.types.str;
description = ''Sets the matcher paths to be "ignored" by caddy'';
default = "/theme/* /media/* /thumbnail/* /bundles/* /css/* /fonts/* /js/* /recovery/* /sitemap/*";
};

fallbackMediaUrl = lib.mkOption {
type = lib.types.str;
description = ''Fallback URL for media not found on local storage. Best for CDN purposes without downloading them.'';
default = "";
};

fallbackMediaPaths = lib.mkOption {
type = lib.types.str;
description = ''Sets the paths to be redirected to the fallbackMediaUrl.'';
default = "/media/* /thumbnail/*";
};

additionalPackages = lib.mkOption {
type = lib.types.listOf lib.types.package;
description = "Additional packages to be installed";
default = [ ];
example = [ pkgs.jpegoptim pkgs.optipng pkgs.gifsicle ];
};

enableMysqlBinLog = lib.mkOption {
type = lib.types.bool;
description = ''Enables MySQL binary logs'';
default = false;
};

httpPort = lib.mkOption {
type = lib.types.str;
description = ''Sets the HTTP port'';
default = "80";
};

httpsPort = lib.mkOption {
type = lib.types.str;
description = ''Sets the HTTPS port'';
default = "443";
};
};
}

0 comments on commit d103fb5

Please sign in to comment.