f53dfa1c4c
Four defects from the rc.1 dress rehearsal: - Dockerfile pinned golang:1.26-alpine3.23 at a 1.26.3 digest while go.mod requires 1.26.4; golang images set GOTOOLCHAIN=local, so the build hard-fails. Pin 1.26.4-alpine3.23 explicitly. - changelog.disable swallowed --release-notes (the flag is consumed by the changelog pipe), publishing empty release bodies. Re-enable. - Remove the Gitea-side GitHub relay step: redundant with .github/workflows/mirror-release.yml, which runs on GitHub Actions with the built-in token and copies the canonical Gitea assets. - mirror-release.yml: jq '.body // empty' treats "" as truthy so the notes fallback never fired; use select(). Mark rc tags --prerelease.
66 lines
1.5 KiB
YAML
66 lines
1.5 KiB
YAML
version: 2
|
|
|
|
gitea_urls:
|
|
api: "{{ if index .Env \"GITEA_API_URL\" }}{{ .Env.GITEA_API_URL }}{{ else }}https://gitea.lerkolabs.com/api/v1{{ end }}"
|
|
download: https://gitea.lerkolabs.com
|
|
|
|
release:
|
|
gitea:
|
|
owner: lerkolabs
|
|
name: uptop
|
|
prerelease: auto
|
|
|
|
builds:
|
|
- main: ./cmd/uptop
|
|
binary: uptop
|
|
env:
|
|
- CGO_ENABLED=0
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
- windows
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
ldflags:
|
|
- -s -w
|
|
- -X main.version={{ .Version }}
|
|
- -X main.commit={{ .Commit }}
|
|
- -X main.date={{ .Date }}
|
|
flags:
|
|
- -trimpath
|
|
|
|
archives:
|
|
- formats: [tar.gz]
|
|
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
|
|
format_overrides:
|
|
- goos: windows
|
|
formats: [zip]
|
|
|
|
checksum:
|
|
name_template: checksums.txt
|
|
|
|
nfpms:
|
|
- package_name: uptop
|
|
file_name_template: "{{ .ConventionalFileName }}"
|
|
vendor: LerkoLabs
|
|
homepage: https://gitea.lerkolabs.com/lerkolabs/uptop
|
|
maintainer: Tyler Koenig <tyler@lerkolabs.com>
|
|
description: Self-hosted uptime monitoring with a TUI over SSH
|
|
license: MIT
|
|
section: net
|
|
priority: optional
|
|
formats:
|
|
- deb
|
|
- rpm
|
|
bindir: /usr/bin
|
|
contents:
|
|
- src: ./LICENSE
|
|
dst: /usr/share/doc/uptop/LICENSE
|
|
type: doc
|
|
|
|
# Changelog generation must stay enabled: the --release-notes flag is consumed
|
|
# by the changelog pipe, so disabling it silently drops the git-cliff notes
|
|
# (empty release body on v0.1.0-rc.1). With --release-notes set, GoReleaser
|
|
# skips its own generation and uses the file.
|