1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-01-10 03:47:03 +02:00

fpm only for linux builds

This commit is contained in:
Carlos Alexandro Becker 2017-07-01 13:02:41 -03:00
parent 40fc46da92
commit 736d155884
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940

View File

@ -39,6 +39,10 @@ func (Pipe) Run(ctx *context.Context) error {
var g errgroup.Group
for _, format := range ctx.Config.FPM.Formats {
for key, folder := range ctx.Folders {
if !strings.Contains(key, "linux") {
log.WithField("key", key).Debug("skipped non-linux builds for fpm")
continue
}
folder := folder
format := format
arch := archFor(key)