You've already forked goreleaser
mirror of
https://github.com/goreleaser/goreleaser.git
synced 2025-07-17 01:42:37 +02:00
feat(pipeline): change the pipeline order to support additional template variables in the before pipe (#1711)
This change allows us to use all the template variables in the named templates in the before hook. Issue: GH-1710 Co-authored-by: Ryan Currah <ryan.currah@crowdstrike.com>
This commit is contained in:
@ -37,10 +37,10 @@ type Piper interface {
|
|||||||
// BuildPipeline contains all build-related pipe implementations in order
|
// BuildPipeline contains all build-related pipe implementations in order
|
||||||
// nolint:gochecknoglobals
|
// nolint:gochecknoglobals
|
||||||
var BuildPipeline = []Piper{
|
var BuildPipeline = []Piper{
|
||||||
before.Pipe{}, // run global hooks before build
|
|
||||||
env.Pipe{}, // load and validate environment variables
|
env.Pipe{}, // load and validate environment variables
|
||||||
git.Pipe{}, // get and validate git repo state
|
git.Pipe{}, // get and validate git repo state
|
||||||
semver.Pipe{}, // parse current tag to a semver
|
semver.Pipe{}, // parse current tag to a semver
|
||||||
|
before.Pipe{}, // run global hooks before build
|
||||||
defaults.Pipe{}, // load default configs
|
defaults.Pipe{}, // load default configs
|
||||||
snapshot.Pipe{}, // snapshot version handling
|
snapshot.Pipe{}, // snapshot version handling
|
||||||
dist.Pipe{}, // ensure ./dist is clean
|
dist.Pipe{}, // ensure ./dist is clean
|
||||||
|
Reference in New Issue
Block a user