1
0
mirror of https://github.com/goreleaser/goreleaser.git synced 2025-03-17 20:47:50 +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:
Ryan Currah 2020-07-29 22:29:31 -04:00 committed by GitHub
parent b0d8ba8fcd
commit 05f07a4d9a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,10 +37,10 @@ type Piper interface {
// BuildPipeline contains all build-related pipe implementations in order
// nolint:gochecknoglobals
var BuildPipeline = []Piper{
before.Pipe{}, // run global hooks before build
env.Pipe{}, // load and validate environment variables
git.Pipe{}, // get and validate git repo state
semver.Pipe{}, // parse current tag to a semver
before.Pipe{}, // run global hooks before build
defaults.Pipe{}, // load default configs
snapshot.Pipe{}, // snapshot version handling
dist.Pipe{}, // ensure ./dist is clean