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

fix: deploy goreleases to snap store

This commit is contained in:
Carlos Alexandro Becker 2018-10-20 17:41:31 -03:00
parent fbdbff884b
commit f7268a0979
No known key found for this signature in database
GPG Key ID: E61E2F7DC14AB940
2 changed files with 3 additions and 2 deletions

View File

@ -78,4 +78,4 @@ snapcraft:
wrapped in your favorite CI.
grade: stable
confinement: classic
publish: true

View File

@ -54,7 +54,7 @@ const defaultNameTemplate = "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arc
type Pipe struct{}
func (Pipe) String() string {
return "creating Linux packages with snapcraft"
return "Snapcraft Packages"
}
// Default sets the pipe defaults
@ -208,6 +208,7 @@ func create(ctx *context.Context, arch string, binaries []artifact.Artifact) err
}
func push(ctx *context.Context, snap artifact.Artifact) error {
log.WithField("snap", snap.Name).Info("pushing")
/* #nosec */
var cmd = exec.CommandContext(ctx, "snapcraft", "push", "--release=stable", snap.Path)
if out, err := cmd.CombinedOutput(); err != nil {