support for interpolating global env variables

pull/3/head
Brad Rydzewski 4 years ago
parent 56f7972d39
commit b849bd35b2

@ -3,8 +3,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased]
### Fixed
- fix panic when registry uri parsing errors
- panic when registry uri parsing errors
- do not mask single-character secrets
- capture stage duration on failure
### Added
- support for running a single pipeline on-demand
- support for interpolating global environment variables
- function for creating netrc environment variables
## [1.6.0] - 2020-03-24
### Added

@ -30,6 +30,10 @@ type Runner struct {
// machine executing the pipeline.
Machine string
// Environ defines global environment variables that can
// be interpolated into the yaml using bash substitution.
Environ map[string]string
// Client is the remote client responsible for interacting
// with the central server.
Client client.Client
@ -160,6 +164,7 @@ func (s *Runner) run(ctx context.Context, stage *drone.Stage, data *client.Conte
}()
envs := environ.Combine(
s.Environ,
environ.System(data.System),
environ.Repo(data.Repo),
environ.Build(data.Build),

Loading…
Cancel
Save