diff --git a/.goreleaser.yml b/.goreleaser.yml index 9a1bd391..52fb9695 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -2,13 +2,20 @@ project_name: meteor release: prerelease: auto - draft: true before: hooks: - go mod tidy - make clean +changelog: + sort: asc + filters: + exclude: + - "^docs:" + - "^test:" + - "^build:" + builds: - main: ./main.go id: "linux" @@ -59,14 +66,6 @@ checksum: snapshot: name_template: "{{ .Tag }}-next" -changelog: - sort: asc - filters: - exclude: - - "^docs:" - - "^test:" - - "^build:" - dockers: - goos: linux goarch: amd64 @@ -78,6 +77,24 @@ dockers: - "docker.io/raystack/{{.ProjectName}}:{{ .Version }}" - "docker.io/raystack/{{.ProjectName}}:{{ .Version }}-amd64" +nfpms: + - maintainer: Raystack + description: "Metadata collection tool." + homepage: https://github.com/raystack/meteor + license: Apache 2.0 + formats: + - deb + - rpm + - apk + +scoops: + - homepage: "https://github.com/raystack/meteor" + description: "Metadata collection tool." + license: Apache 2.0 + bucket: + owner: raystack + name: scoop-bucket + brews: - name: meteor homepage: "https://github.com/raystack/meteor" @@ -87,7 +104,6 @@ brews: name: homebrew-tap license: "Apache 2.0" folder: Formula - dependencies: - name: git install: |- diff --git a/cmd/gen.go b/cmd/gen.go index 1e1ebfaf..9e1612a4 100644 --- a/cmd/gen.go +++ b/cmd/gen.go @@ -31,7 +31,7 @@ func GenCmd() *cobra.Command { $ meteor gen my-template.yaml -o ./output-dir -d ./data.yaml `), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, RunE: func(cmd *cobra.Command, args []string) error { templatePath := args[0] diff --git a/cmd/info.go b/cmd/info.go index 0285071e..fbbeca59 100644 --- a/cmd/info.go +++ b/cmd/info.go @@ -17,7 +17,7 @@ func InfoCmd() *cobra.Command { Use: "info ", Short: "Display plugin information", Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, } cmd.AddCommand(InfoSinkCmd()) @@ -41,7 +41,7 @@ func InfoSinkCmd() *cobra.Command { `), Args: cobra.MaximumNArgs(1), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, RunE: func(cmd *cobra.Command, args []string) error { var sinks []string @@ -86,7 +86,7 @@ func InfoExtCmd() *cobra.Command { `), Args: cobra.MaximumNArgs(1), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, RunE: func(cmd *cobra.Command, args []string) error { var extractors []string @@ -130,7 +130,7 @@ func InfoProccCmd() *cobra.Command { `), Args: cobra.MaximumNArgs(1), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, RunE: func(cmd *cobra.Command, args []string) error { var processors []string diff --git a/cmd/lint.go b/cmd/lint.go index d81c3fcc..261fe9ce 100644 --- a/cmd/lint.go +++ b/cmd/lint.go @@ -45,7 +45,7 @@ func LintCmd() *cobra.Command { $ meteor lint . `), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, RunE: func(cmd *cobra.Command, args []string) error { cfg, err := config.Load("./meteor.yaml") diff --git a/cmd/list.go b/cmd/list.go index 75bb75ce..4ecd09a3 100644 --- a/cmd/list.go +++ b/cmd/list.go @@ -19,7 +19,7 @@ func ListCmd() *cobra.Command { Use: "list ", Short: "List available plugins", Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, } cmd.AddCommand(ListExtCmd()) @@ -49,7 +49,7 @@ func ListExtCmd() *cobra.Command { $ meteor list e `), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, Run: func(cmd *cobra.Command, args []string) { extractors := registry.Extractors.List() @@ -89,7 +89,7 @@ func ListSinksCmd() *cobra.Command { $ meteor list s `), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, Run: func(cmd *cobra.Command, args []string) { sinks := registry.Sinks.List() @@ -128,7 +128,7 @@ func ListProccCmd() *cobra.Command { $ meteor list p `), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, Run: func(cmd *cobra.Command, args []string) { processors := registry.Processors.List() diff --git a/cmd/new.go b/cmd/new.go index b4eca800..8715c683 100644 --- a/cmd/new.go +++ b/cmd/new.go @@ -18,7 +18,7 @@ func NewCmd() *cobra.Command { Use: "new", Short: "Bootstrap new recipes", Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, } @@ -58,7 +58,7 @@ func NewRecipeCmd() *cobra.Command { $ meteor new recipe sample -e bigquery -s compass > recipe.yaml `), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, RunE: func(cmd *cobra.Command, args []string) error { var sinkList []string diff --git a/cmd/root.go b/cmd/root.go index f88b27f5..0621f8b3 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -20,7 +20,7 @@ func New() *cobra.Command { $ meteor gen recipe --extractor=date --sink console `), Annotations: map[string]string{ - "group:core": "true", + "group": "core", "help:learn": heredoc.Doc(` Use 'meteor --help' for more information about a command. Read the manual at https://raystack.github.io/meteor/ diff --git a/cmd/run.go b/cmd/run.go index 37f16177..d544f029 100644 --- a/cmd/run.go +++ b/cmd/run.go @@ -55,7 +55,7 @@ func RunCmd() *cobra.Command { `), Args: cobra.ExactArgs(1), Annotations: map[string]string{ - "group:core": "true", + "group": "core", }, RunE: func(cmd *cobra.Command, args []string) error { cfg, err := config.Load(configFile)