Skip to content
This repository has been archived by the owner on Oct 3, 2023. It is now read-only.

.WithEnv(...): Add support for injecting environment variables in a pipeline step. #16

Open
kminehart opened this issue Mar 9, 2022 · 0 comments
Assignees

Comments

@kminehart
Copy link
Collaborator

This should support both static values:

pipeline.NamedStep("some-step", action).
    WithEnv(map[string]interface{}{
        "key": "static-value",
    })

Or pipeline.StepArguments, that get resolved when the pipeline is executing:

pipeline.NamedSteps("some-step", action).
    WithEnv(map[string]interface{}{
        "key": pipeline.NewStringArgument("some-value"),
    })
@kminehart kminehart self-assigned this Apr 4, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant