From b19354442b8f9bfc24d52b3cb3fd60f9b86fe978 Mon Sep 17 00:00:00 2001
From: pnmadelaine 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.
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 are scripts called by Typhon for different purposes. At the moment there are three actions a project can define.
@@ -193,10 +194,10 @@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.
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 @@
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.
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 are scripts called by Typhon for different purposes. At the moment there are three actions a project can define.
@@ -203,10 +204,10 @@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.
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 @@
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