-
Notifications
You must be signed in to change notification settings - Fork 230
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add NFPM configuration for packaging and install step in release work…
…flow
- Loading branch information
Showing
2 changed files
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,61 @@ before: | |
- go mod download | ||
env: | ||
- CGO_ENABLED=0 | ||
nfpms: | ||
# note that this is an array of nfpm configs | ||
- # | ||
# ID of the nfpm config, must be unique. | ||
# | ||
# Default: 'default'. | ||
id: default | ||
|
||
# Name of the package. | ||
# | ||
# Default: ProjectName. | ||
# Templates: allowed. | ||
package_name: oneuptime-infrastructure-agent | ||
|
||
file_name_template: 'oneuptime-infrastructure-agent_{{ .Arch }}.{{ .Format }}' | ||
|
||
# Your app's vendor. | ||
vendor: HackerBay, Inc. | ||
|
||
# Your app's homepage. | ||
# | ||
# Default: inferred from global metadata. | ||
homepage: https:/oneuptime.com/ | ||
|
||
# Your app's maintainer (probably you). | ||
# | ||
# Default: inferred from global metadata. | ||
maintainer: OneUptime Infrastructure Team <[email protected]> | ||
|
||
# Your app's description. | ||
# | ||
# Default: inferred from global metadata. | ||
description: |- | ||
OneUptime Infrastructure Agent is a lightweight agent that collects system metrics and sends them to the OneUptime platform. | ||
# Your app's license. | ||
# | ||
# Default: inferred from global metadata. | ||
license: Apache 2.0 | ||
|
||
# Formats to be generated. | ||
formats: | ||
- apk | ||
- deb | ||
- rpm | ||
- termux.deb | ||
- archlinux | ||
|
||
# Packages your package depends on. (overridable) | ||
dependencies: | ||
- git | ||
- bash | ||
- coreutils | ||
- systemd | ||
|
||
builds: | ||
- binary: oneuptime-infrastructure-agent | ||
main: ./ | ||
|