Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

.goreleaser.yml nfpms configuration #647

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 27 additions & 20 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ project_name: chirpstack-application-server
builds:
- main: cmd/chirpstack-application-server/main.go
binary: chirpstack-application-server
env:
- CGO_ENABLED=0
goos:
- windows
- darwin
Expand All @@ -23,23 +25,28 @@ builds:
release:
disable: true

nfpm:
vendor: ChirpStack
homepage: https://www.loraserver.io/
maintainer: Orne Brocaar <[email protected]>
description: ChirpStack Application Server
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
files:
"packaging/files/chirpstack-application-server.rotate": "/etc/logrotate.d/chirpstack-application-server"
"packaging/files/chirpstack-application-server.init": "/usr/lib/chirpstack-application-server/scripts/chirpstack-application-server.init"
"packaging/files/chirpstack-application-server.service": "/usr/lib/chirpstack-application-server/scripts/chirpstack-application-server.service"
config_files:
"packaging/files/chirpstack-application-server.toml": "/etc/chirpstack-application-server/chirpstack-application-server.toml"
scripts:
preinstall: "packaging/scripts/pre-install.sh"
postinstall: "packaging/scripts/post-install.sh"
postremove: "packaging/scripts/post-remove.sh"
nfpms:
- id: chirpstack-application-server
vendor: ChirpStack
homepage: https://www.chirpstack.io/
maintainer: Orne Brocaar <[email protected]>
description: ChirpStack Application Server
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- src: "packaging/files/chirpstack-application-server.rotate"
dst: "/etc/logrotate.d/chirpstack-application-server"
- src: "packaging/files/chirpstack-application-server.init"
dst: "/usr/lib/chirpstack-application-server/scripts/chirpstack-application-server.init"
- src: "packaging/files/chirpstack-application-server.service"
dst: "/usr/lib/chirpstack-application-server/scripts/chirpstack-application-server.service"
- src: "packaging/files/chirpstack-application-server.toml"
dst: "/etc/chirpstack-application-server/chirpstack-application-server.toml"
type: config
scripts:
preinstall: "packaging/scripts/pre-install.sh"
postinstall: "packaging/scripts/post-install.sh"
postremove: "packaging/scripts/post-remove.sh"
34 changes: 14 additions & 20 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,28 +4,26 @@ go 1.16

require (
github.com/NickBall/go-aes-key-wrap v0.0.0-20170929221519-1c3aa3e4dfc5
github.com/aws/aws-sdk-go v1.26.3
github.com/aws/aws-sdk-go v1.40.34
github.com/brocaar/chirpstack-api/go/v3 v3.12.4
github.com/brocaar/lorawan v0.0.0-20210809075358-95fc1667572e
github.com/coreos/go-oidc v2.2.1+incompatible
github.com/eclipse/paho.mqtt.golang v1.3.1
github.com/go-redis/redis/v8 v8.8.3
github.com/gofrs/uuid v3.2.0+incompatible
github.com/gogo/protobuf v1.3.2 // indirect
github.com/golang-jwt/jwt/v4 v4.0.0
github.com/golang-migrate/migrate/v4 v4.14.1
github.com/golang/protobuf v1.4.3
github.com/golang/protobuf v1.5.2
github.com/gopherjs/gopherjs v0.0.0-20190430165422-3e4dfb77656c // indirect
github.com/goreleaser/goreleaser v0.106.0
github.com/goreleaser/nfpm v0.11.0
github.com/goreleaser/goreleaser v1.1.0
github.com/goreleaser/nfpm v1.10.3
github.com/gorilla/mux v1.7.4
github.com/grpc-ecosystem/go-grpc-middleware v1.1.0
github.com/grpc-ecosystem/go-grpc-prometheus v1.2.0
github.com/grpc-ecosystem/grpc-gateway v1.12.1
github.com/jmoiron/sqlx v1.2.0
github.com/grpc-ecosystem/grpc-gateway v1.16.0
github.com/jmoiron/sqlx v1.2.1-0.20190826204134-d7d95172beb5
github.com/lib/pq v1.10.2
github.com/mmcloughlin/geohash v0.9.0
github.com/pelletier/go-toml v1.6.0 // indirect
github.com/pkg/errors v0.9.1
github.com/pquerna/cachecontrol v0.0.0-20180517163645-1555304b9b35 // indirect
github.com/prometheus/client_golang v1.2.1
Expand All @@ -34,22 +32,18 @@ require (
github.com/robertkrimen/otto v0.0.0-20191217063420-37f8e9a2460c
github.com/segmentio/kafka-go v0.4.17
github.com/sirupsen/logrus v1.7.0
github.com/smartystreets/assertions v1.0.0 // indirect
github.com/smartystreets/goconvey v1.6.4
github.com/spf13/afero v1.2.2 // indirect
github.com/spf13/cobra v0.0.5
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/spf13/viper v1.6.2
github.com/spf13/cobra v1.2.1
github.com/spf13/viper v1.8.1
github.com/streadway/amqp v0.0.0-20190827072141-edfb9018d271
github.com/stretchr/testify v1.7.0
github.com/tmc/grpc-websocket-proxy v0.0.0-20201229170055-e5319fda7802
golang.org/x/crypto v0.0.0-20200709230013-948cd5f35899
golang.org/x/lint v0.0.0-20200302205851-738671d3881b
golang.org/x/net v0.0.0-20201224014010-6772e930b67b
golang.org/x/oauth2 v0.0.0-20200107190931-bf48bf16ab8d
golang.org/x/tools v0.0.0-20210106214847-113979e3529a
google.golang.org/grpc v1.33.1
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519
golang.org/x/lint v0.0.0-20210508222113-6edffad5e616
golang.org/x/net v0.0.0-20211007125505-59d4e928ea9d
golang.org/x/oauth2 v0.0.0-20210819190943-2bc19b11175f
golang.org/x/tools v0.1.5
google.golang.org/grpc v1.40.0
gopkg.in/sourcemap.v1 v1.0.5 // indirect
gopkg.in/square/go-jose.v2 v2.5.1 // indirect
)
Expand Down
Loading