[PR #1297] [MERGED] Set up nFPM to build .deb and .rpm #2022

Closed
opened 2025-12-29 03:19:20 +01:00 by adam · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/juanfont/headscale/pull/1297
Author: @kradalby
Created: 3/28/2023
Status: Merged
Merged: 4/7/2023
Merged by: @juanfont

Base: mainHead: nfpm


📝 Commits (1)

  • dde736a Simplify goreleaser, package deb and rpm

📊 Changes

12 files changed (+364 additions, -197 deletions)

View changed files

.github/workflows/release-docker.yml (+138 -0)
📝 .github/workflows/release.yml (+0 -129)
📝 .gitignore (+1 -0)
📝 .goreleaser.yml (+58 -53)
📝 CHANGELOG.md (+2 -0)
📝 cmd/headscale/headscale_test.go (+2 -2)
📝 config-example.yaml (+5 -13)
docs/packaging/README.md (+5 -0)
docs/packaging/headscale.systemd.service (+52 -0)
docs/packaging/postinstall.sh (+85 -0)
docs/packaging/postremove.sh (+15 -0)
📝 flake.nix (+1 -0)

📄 Description

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.

Issue and PRs related to poor docs that could be fixed by this:


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/juanfont/headscale/pull/1297 **Author:** [@kradalby](https://github.com/kradalby) **Created:** 3/28/2023 **Status:** ✅ Merged **Merged:** 4/7/2023 **Merged by:** [@juanfont](https://github.com/juanfont) **Base:** `main` ← **Head:** `nfpm` --- ### 📝 Commits (1) - [`dde736a`](https://github.com/juanfont/headscale/commit/dde736a16a0454284996ee32c2c171c686391a20) Simplify goreleaser, package deb and rpm ### 📊 Changes **12 files changed** (+364 additions, -197 deletions) <details> <summary>View changed files</summary> ➕ `.github/workflows/release-docker.yml` (+138 -0) 📝 `.github/workflows/release.yml` (+0 -129) 📝 `.gitignore` (+1 -0) 📝 `.goreleaser.yml` (+58 -53) 📝 `CHANGELOG.md` (+2 -0) 📝 `cmd/headscale/headscale_test.go` (+2 -2) 📝 `config-example.yaml` (+5 -13) ➕ `docs/packaging/README.md` (+5 -0) ➕ `docs/packaging/headscale.systemd.service` (+52 -0) ➕ `docs/packaging/postinstall.sh` (+85 -0) ➕ `docs/packaging/postremove.sh` (+15 -0) 📝 `flake.nix` (+1 -0) </details> ### 📄 Description 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. Issue and PRs related to poor docs that _could_ be fixed by this: - https://github.com/juanfont/headscale/pull/1221 - https://github.com/juanfont/headscale/issues/1217 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
adam added the pull-request label 2025-12-29 03:19:20 +01:00
adam closed this issue 2025-12-29 03:19:20 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/headscale#2022