Skip to content
Permalink
Browse files

fix: deploy goreleases to snap store

  • Loading branch information...
caarlos0 committed Oct 20, 2018
1 parent fbdbff8 commit f7268a097957ecd3c3a0ba21b4e78ea399189494
Showing with 3 additions and 2 deletions.
  1. +1 −1 .goreleaser.yml
  2. +2 −1 internal/pipe/snapcraft/snapcraft.go
@@ -78,4 +78,4 @@ snapcraft:
wrapped in your favorite CI.
grade: stable
confinement: classic

publish: true
@@ -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 {

0 comments on commit f7268a0

Please sign in to comment.
You can’t perform that action at this time.