From b19354442b8f9bfc24d52b3cb3fd60f9b86fe978 Mon Sep 17 00:00:00 2001 From: pnmadelaine Date: Sun, 24 Sep 2023 17:17:51 +0000 Subject: [PATCH] deploy: d81f1b2d88c3a0c343240cf7922248a324fb9538 --- concepts.html | 13 +++++++------ print.html | 23 +++++++++++------------ searchindex.js | 2 +- searchindex.json | 2 +- usage.html | 10 ++++------ 5 files changed, 24 insertions(+), 26 deletions(-) diff --git a/concepts.html b/concepts.html index 84540d38..f2c951b3 100644 --- a/concepts.html +++ b/concepts.html @@ -175,8 +175,9 @@

Projects

expose a typhonProject attribute defining the project settings.

typhonProject contains two attributes: meta and actions. meta is an attribute set which defines metadata about your project: a title, a description -and a homepage. actions is a derivation that builds actions for your project. -Actions are another core concept of Typhon and are introduced below.

+and a homepage. actions is an attribute set of derivations that build actions +for your project. Actions are another core concept of Typhon and are introduced +below.

Actions

Actions are scripts called by Typhon for different purposes. At the moment there are three actions a project can define.

@@ -193,10 +194,10 @@

Actions

can also be used for deployment.

-

The actions attribute of typhonProject can also expose a secrets file. -This is an age encrypted JSON file that typically contains tokens for the -actions. It must be encrypted with the project's public key and is decrypted at -runtime and passed as input to the actions.

+

Actions can also expose a secrets file. This is an age encrypted JSON file +that typically contains tokens for the actions. It must be encrypted with the +project's public key and is decrypted at runtime and passed as input to the +actions.

Jobsets

A Typhon jobset is a flake that exposes a typhonJobs attribute. typhonJobs is an attribute set of derivations that are built by Typhon. Jobsets typically diff --git a/print.html b/print.html index 9688aa37..c7b91630 100644 --- a/print.html +++ b/print.html @@ -185,8 +185,9 @@

Projects

expose a typhonProject attribute defining the project settings.

typhonProject contains two attributes: meta and actions. meta is an attribute set which defines metadata about your project: a title, a description -and a homepage. actions is a derivation that builds actions for your project. -Actions are another core concept of Typhon and are introduced below.

+and a homepage. actions is an attribute set of derivations that build actions +for your project. Actions are another core concept of Typhon and are introduced +below.

Actions

Actions are scripts called by Typhon for different purposes. At the moment there are three actions a project can define.

@@ -203,10 +204,10 @@

Actions

can also be used for deployment.

-

The actions attribute of typhonProject can also expose a secrets file. -This is an age encrypted JSON file that typically contains tokens for the -actions. It must be encrypted with the project's public key and is decrypted at -runtime and passed as input to the actions.

+

Actions can also expose a secrets file. This is an age encrypted JSON file +that typically contains tokens for the actions. It must be encrypted with the +project's public key and is decrypted at runtime and passed as input to the +actions.

Jobsets

A Typhon jobset is a flake that exposes a typhonJobs attribute. typhonJobs is an attribute set of derivations that are built by Typhon. Jobsets typically @@ -304,9 +305,8 @@

Declare a inputs = { typhon.url = "github:typhon-ci/typhon"; }; outputs = { self, typhon }: - let libTyphon = typhon.actions."x86_64-linux"; - in { - typhonProject = libTyphon.mkGithubProject { + { + typhonProject = typhon.lib.github.mkGithubProject { owner = "user"; repo = "project"; secrets = ./secrets.age; @@ -321,8 +321,7 @@

Declare a }

Encrypt the JSON file with age:

-
nix shell nixpkgs#age
-age --encrypt -r $public_key -o secrets.age secrets.json
+
nix run nixpkgs#age -- --encrypt -r $public_key -o secrets.age secrets.json
 

Finally, you need to commit the lock file of your flake.

Declare jobs

@@ -336,7 +335,7 @@

Declare jobsDeclare a inputs = { typhon.url = "github:typhon-ci/typhon"; }; outputs = { self, typhon }: - let libTyphon = typhon.actions."x86_64-linux"; - in { - typhonProject = libTyphon.mkGithubProject { + { + typhonProject = typhon.lib.github.mkGithubProject { owner = "user"; repo = "project"; secrets = ./secrets.age; @@ -204,8 +203,7 @@

Declare a }

Encrypt the JSON file with age:

-
nix shell nixpkgs#age
-age --encrypt -r $public_key -o secrets.age secrets.json
+
nix run nixpkgs#age -- --encrypt -r $public_key -o secrets.age secrets.json
 

Finally, you need to commit the lock file of your flake.

Declare jobs

@@ -219,7 +217,7 @@

Declare jobs