Commit Graph

21 Commits

Author SHA1 Message Date
Kristoffer Dalby e6b26499f7 release source code with vendored dependencies
Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-04-20 08:13:38 +02:00
Kristoffer Dalby 977eb1dee3
Update flakes, add some quality of life improvements (#1346) 2023-04-20 07:56:53 +02:00
Andriy Kushnir (Orhideous) ba905ff6fc Add GHA CI to build and deploy docs 2023-04-07 15:24:13 +02:00
Kristoffer Dalby b684ac0668 Simplify goreleaser, package deb and rpm
This commit simplifies the goreleaser configuration and then adds nfpm
support which allows us to build .deb and .rpm for each of the ARCH we
support.

The deb and rpm packages adds systemd services and users, creates
directories etc and should in general give the user a working
environment. We should be able to remove a lot of the complicated,
PEBCAK inducing documentation after this.

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-04-07 11:06:42 +02:00
Kristoffer Dalby 727d95b477 Improve generated integration tests
- Save logs from control(headscale) on every run to tmp
- Upgrade nix-actions
- Cancel builds if new commit is pushed
- Fix a sorting bug in user command test

Signed-off-by: Kristoffer Dalby <kristoffer@tailscale.com>
2023-01-30 14:43:03 +01:00
Kristoffer Dalby c02819ab9f Ignore new dump file 2022-06-12 17:26:44 +00:00
Kristoffer Dalby 91e5cbd793 Add direnv flake support 2022-03-19 09:23:03 +00:00
Kristoffer Dalby 5de9de14a9 Add flake build file
This commit adds a flake.nix build file, it can be used for three
things:

Build `headscale` from local or straight from git:

nix build
or
nix build github:juanfont/headscale

Run and Build `headscale` from local or straight from git:

nix run
or
nix run github:juanfont/headscale

Set up a development environment including all our tools,
- linters
- protobuf tooling
- compilers

nix develop
2022-03-07 16:51:38 +00:00
Eugen a6e99525ac Add log_level to config, more ACL debug log 2021-12-01 20:02:00 +01:00
Eugen 7e95b3501d Ignoe derp.yaml, don't panic in Serve() 2021-12-01 19:32:47 +01:00
Kristoffer Dalby e836db1ead Add config.yaml to gitignore 2021-10-22 16:51:19 +00:00
ohdearaugustin 1e93347a26
Merge branch 'main' into topic/docker-release 2021-09-12 18:18:34 +02:00
ohdearaugustin 3b97c7bdec gitignore: add jetbrains 2021-09-12 18:08:43 +02:00
Kristoffer Dalby 1f422af1c8
Save headscale logs if jobs fail 2021-08-20 16:50:55 +01:00
Kristoffer Dalby 4e077b053c Initial work, add integration tests
This commit adds integration tests to headscale. They are currently
quite simple, but it lays the groundwork for more comprehensive testing
and ensuring we dont break things with the official tailscale client.

The test works by leveraging Docker (via dockertest) to spin up a
Headscale container, and a number of tailscale containers (10).

Each tailscale container is joined to the headscale and then "passed on"
to the tests.

Currently three tests have been implemented:

- Have all tailscale containers join headscale (in the setup process)
- Get IP from each container (I plan to extend this with cross-ping)
- List nodes with headscales CLI and verify all has been registered

This test depends on Docker, and currently, I have not looked into
hooking it into Github Actions.
2021-08-08 17:50:32 +01:00
Juan Font Alonso 0b8d4a24ae minor update to gitignore 2021-05-15 14:36:56 +02:00
Juan Font Alonso 7d52842a4c Fixed gitignore 2021-02-21 01:31:50 +01:00
Juan Font Alonso ff7db34b5e Fixed gitignore 2021-02-20 23:58:02 +01:00
Juan Font Alonso 8187085e39 Added missing cmd 2020-06-21 12:33:43 +02:00
Juan Font Alonso 7198c8bd77 Initial commit 2020-06-21 12:32:08 +02:00
Juan Font 8077923b68
Initial commit 2020-06-21 11:21:07 +02:00