33 Commits

Author SHA1 Message Date
Aarnav Tale
797ed56c07
chore: remove github pages workflow 2025-08-19 17:53:34 -04:00
Igor Ramazanov
9192013bfe feat: documentation website using Vitepress
Adds documentation website using https://vitepress.dev.

Some decisions are questionable, for example creation of a symbolic link
for the README in the `docs/`. I wanted to preserve the ability to read
docs using Github. Maybe not needed.

Another issue, is the page outline for the `NixOS` chapter is too
narrow.

But should serve as a scaffold/basis for doing it properly.
2025-08-18 13:10:38 -04:00
Aarnav Tale
6d99aca058
feat: add matrix build for release 2025-06-24 12:06:23 -04:00
Aarnav Tale
d809eea564
feat: finalize split debug and distroless container (closes #255) 2025-06-24 11:28:55 -04:00
Aarnav Tale
eacde3deb8
chore: attestation is sha256 based, we dont need tags 2025-06-24 11:15:28 -04:00
Aarnav Tale
ecc547601f
fix: pass in github token for mise ratelimits 2025-06-24 11:01:16 -04:00
Aarnav Tale
eed12d348e
feat: build a debug-shell and distroless container 2025-06-24 10:56:43 -04:00
Aarnav Tale
f28bfd5f86
fix: add attestation perms to gha 2025-06-22 17:36:22 -04:00
Aarnav Tale
8f1b577b5e
fix: allow id-token write in gh actions 2025-06-22 17:32:39 -04:00
Aarnav Tale
9a81b76398
feat: add provenance attestations 2025-06-22 17:28:19 -04:00
Aarnav Tale
144a8b87cd
feat: cache docker build cache using gha 2025-06-22 17:17:56 -04:00
Aarnav Tale
ab7587e7a9
chore: cache go build deps 2025-06-16 11:45:25 -04:00
Aarnav Tale
6d15c411f1
chore: use mise for ci 2025-06-16 11:45:25 -04:00
Aarnav Tale
5adcb8c582
ci: skip ci build on certain paths 2025-04-05 12:07:31 -04:00
Aarnav Tale
5c2d08decd
chore: update dep tooling 2025-04-04 16:09:10 -04:00
Aarnav Tale
96345ab0a6
chore: switch from nightly to pr based incubration 2025-04-04 10:19:37 -04:00
Aarnav Tale
93d5c2ed29 chore: update actions to include next branch 2025-04-03 12:57:06 -04:00
Aarnav Tale
6f40f9cfac
feat: rework github actions 2025-03-24 16:49:54 -04:00
Aarnav Tale
ed1cf188dc
style: format github actions 2025-03-18 00:33:14 -04:00
Igor Ramazanov
03a7e51384
feat: add a nix flake (#132)
* feat: wip `nix`

Add initial code to be used when working with `nix` and `NixOS`.

* a Nix flake
* building a package
* a NixOS module

* feat: build `hp_agent` with `nix`

* feat: add `hp_agent` as a flake output

* feat: nix: start `headplane` after `headscale`

* feat: do not rely on `git` for versioning

It causes lots of pain when building with `nix` for a local `flake.nix`.

Not sure if it's a good general solution:
* now it requires a manual step of updating `./version` on each release.
* we're losing commit hash abbreviation, like `0.5.3-5-gbe5a291`

I guess, this can be fixed by installing git-pre-commit-hook, but even
then it'd be wrong, because the output of `git describe --tags --always`
won't be the same before and after commit.

* feat: include `hp_agent` to the NixOS module

* fix: version error message

* fix: use relative path imports in `nix`

* fix: NixOS module: generate `/etc/headplane/config.yaml` from `services.headplane.settings`

* fix: NixOS module: allow passing `bool` in `services.headplane.settings.*`

* fix: NixOS module: fix `/etc/headplane/config.yaml` generation

* docs: add Nix/NixOS docs

* feat: nix: read version from `package.json`

* fix: nix: fix `agent` env vars configuration

* feat: nix: add `services.headplane.agent.debug` option

* fix: delete unnecessary `version` file

* fix: nix: remove unnecessary `sed` substitutions

A left over from previous versions.
See: https://github.com/tale/headplane/issues/95#issue-2807487849

* feat: nix: do not hardcode `headplane-agent` configuration environment variables

To make the module more flexible and to reduce the dependency on the
config API.

* docs: improve `Nix` documentation

* Reflect recent changes.
* Link `Nix` in README

* feat: nix: setup Nix CI

* feat: nix: CI without depending on flakehub.com

* chore: begin bundling all deps into the server

* fix: loosen headscale config validation

* fix: navigate back to machines page on node deletion

* fix: slice off trailing slash if present on headscale url

* feat: switch to a central singleton handler

This also adds support for Headscale TLS installations

* fix: shamefully-hoist dependencies

* fix: handle localized number fields

* fix: revert dependency bundling for now

* chore: cleanup and remove from readme for now

---------

Co-authored-by: Aarnav Tale <aarnavtale@icloud.com>
2025-03-18 00:31:37 -04:00
Aarnav Tale
a7e4f3e4d2
chore: v0.5.1 2025-02-28 12:21:00 -05:00
Aarnav Tale
40ddb69bc9
fix: resolve latest tags being set 2025-02-28 12:19:14 -05:00
Aarnav Tale
7117060863
chore: stop publishing latest tag 2025-02-27 21:52:22 -05:00
Aarnav Tale
2a1c795d46
feat: update to node 22, pnpm 10 2025-02-04 17:25:39 -05:00
Aarnav Tale
dd9d6cd550
fix: set edge tag to main 2024-06-02 16:52:29 -04:00
Aarnav Tale
f82244f85a
fix: github actions work this time? 2024-06-02 14:33:43 -04:00
Aarnav Tale
896aaad61e
fix: push action had syntax error 2024-06-02 14:29:32 -04:00
Aarnav Tale
e5dece5b7b
feat: add build and nightly 2024-06-02 14:28:42 -04:00
Aarnav Tale
89a7cb5aae
chore: stop prefixing tags with v 2024-04-15 03:41:28 -04:00
Aarnav Tale
bcf00beb75
fix: add publish archs 2024-04-02 15:08:47 -04:00
Aarnav Tale
9342e81733
chore: wording on actions should be ghcr.io 2024-03-30 04:51:34 -04:00
Aarnav Tale
224621d9a5
fix: actions needs ghcr.io 2024-03-30 04:47:46 -04:00
Aarnav Tale
1cf9901d23
feat: add docker build tag 2024-03-26 10:18:11 -04:00