Skip to content

Commit

Permalink
feat:Add deb and rpm packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Jan 22, 2025
1 parent 3c8cdd3 commit 5a93a81
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ __debug_bin*
# Go workspace file
go.work

# Any secrets
.secrets/*

cmd/xmidt-agent/xmidt-agent
.release/docker/config/xmidt_agent.*

Expand Down
28 changes: 28 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,34 @@ nfpms:
fields:
Bugs: https://github.com/xmidt-org/xmidt-agent/issues

-
id: server
file_name_template: '{{ .PackageName }}_{{ .Version }}_debian_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
vendor: xmidt-org
homepage: https://github.com/xmidt-org/xmidt-agent
license: Apache-2.0
maintainer: see_maintainers_file@example.com
description: The client agent for the Xmidt service.

formats:
- deb
- rpm

contents:
# base configuration file
- src: .release/ipk/config.yml
dst: /etc/xmidt-agent/conf.d/01-config.yml

deb:
signature:
key_file: .secrets/deb_gpg_private_key_file
fields:
Bugs: https://github.com/xmidt-org/xmidt-agent/issues
rpm:
group: System Environment/Daemons
signature:
key_file: .secrets/rpm_gpg_private_key_file

source:
enabled: true
name_template: '{{ .ProjectName }}_{{ .Version }}_src'
Expand Down

0 comments on commit 5a93a81

Please sign in to comment.