about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-05-27 16:50:22 +0200
committerSoispha <soispha@vhack.eu>2023-05-27 16:50:22 +0200
commita24e03f8f3025cea66c6126c81b61be8ac5be310 (patch)
tree83a91aa419f4658d403a21c6a64cca1e0cd98c4e
parentFix(flake): Add the templates to the outputs (diff)
downloadflake-templates-a24e03f8f3025cea66c6126c81b61be8ac5be310.tar.gz
flake-templates-a24e03f8f3025cea66c6126c81b61be8ac5be310.zip
Build(treewide): Add necessary files
-rw-r--r--.envrc5
-rw-r--r--.gitignore4
-rw-r--r--cog.toml27
3 files changed, 36 insertions, 0 deletions
diff --git a/.envrc b/.envrc
new file mode 100644
index 0000000..a9c7e4e
--- /dev/null
+++ b/.envrc
@@ -0,0 +1,5 @@
+use flake
+if on_git_branch; then
+  echo && git status --short --branch &&
+  echo && git fetch --verbose
+fi
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..aad77ec
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,4 @@
+# build dirs
+/result
+
+.direnv
diff --git a/cog.toml b/cog.toml
new file mode 100644
index 0000000..8512df7
--- /dev/null
+++ b/cog.toml
@@ -0,0 +1,27 @@
+from_latest_tag = false
+tag_prefix = "v"
+ignore_merge_commits = false
+pre_package_bump_hooks = []
+post_package_bump_hooks = []
+
+branch_whitelist = [
+  "prime",
+]
+
+pre_bump_hooks = [
+    "nix flake check",
+]
+post_bump_hooks = [
+    "git push",
+    "git push origin v{{version}}", # push the new tag to origin
+]
+
+[commit_types]
+
+[changelog]
+path = "NEWS"
+authors = []
+
+[bump_profiles]
+
+[packages]