mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-05-27 23:07:53 +02:00
parent
0f6d8daa05
commit
2da661bc77
@ -91,6 +91,7 @@ func create(ctx *context.Context, binaries []artifact.Artifact) error {
|
|||||||
}
|
}
|
||||||
defer archiveFile.Close() // nolint: errcheck
|
defer archiveFile.Close() // nolint: errcheck
|
||||||
var log = log.WithField("archive", archivePath)
|
var log = log.WithField("archive", archivePath)
|
||||||
|
log.Info("creating")
|
||||||
var a = archive.New(archiveFile)
|
var a = archive.New(archiveFile)
|
||||||
defer a.Close() // nolint: errcheck
|
defer a.Close() // nolint: errcheck
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ func doPublish(ctx *context.Context, c client.Client) error {
|
|||||||
}
|
}
|
||||||
log.WithField("tag", ctx.Git.CurrentTag).
|
log.WithField("tag", ctx.Git.CurrentTag).
|
||||||
WithField("repo", ctx.Config.Release.GitHub.String()).
|
WithField("repo", ctx.Config.Release.GitHub.String()).
|
||||||
Info("release")
|
Info("creating or updating release")
|
||||||
body, err := describeBody(ctx)
|
body, err := describeBody(ctx)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
@ -133,7 +133,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
|
|||||||
}
|
}
|
||||||
|
|
||||||
var file = filepath.Join(primeDir, "meta", "snap.yaml")
|
var file = filepath.Join(primeDir, "meta", "snap.yaml")
|
||||||
log.WithField("file", file).Debug("snap metadata")
|
log.WithField("file", file).Debug("creating snap metadata")
|
||||||
|
|
||||||
var metadata = &Metadata{
|
var metadata = &Metadata{
|
||||||
Version: ctx.Version,
|
Version: ctx.Version,
|
||||||
@ -187,7 +187,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
|
|||||||
}
|
}
|
||||||
|
|
||||||
var snap = filepath.Join(ctx.Config.Dist, folder+".snap")
|
var snap = filepath.Join(ctx.Config.Dist, folder+".snap")
|
||||||
log.WithField("snap", snap)
|
log.WithField("snap", snap).Info("creating")
|
||||||
/* #nosec */
|
/* #nosec */
|
||||||
var cmd = exec.CommandContext(ctx, "snapcraft", "pack", primeDir, "--output", snap)
|
var cmd = exec.CommandContext(ctx, "snapcraft", "pack", primeDir, "--output", snap)
|
||||||
if out, err = cmd.CombinedOutput(); err != nil {
|
if out, err = cmd.CombinedOutput(); err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user