taimos / projen-pipelines

CDK pipelines using projen
Apache License 2.0
40 stars 2 forks source link

feat(pipeline): add support for env vars in pipeline steps #76

Closed hoegertn closed 2 weeks ago

hoegertn commented 3 weeks ago

Added the ability to specify environment variables for individual pipeline steps in both GitHub and GitLab configurations. This feature allows easier customization of the CI/CD environment on a per-step basis, improving flexibility for build, synth, and deploy jobs.

With this change, developers can now include additional environment variables within the GithubStepConfig and GitlabStepConfig blocks by using the new env field. These variables are aggregated and applied to the respective pipeline step environments during the job execution, ensuring that each step has the necessary context and settings to run successfully.

This update is significant because it enhances the capabilities of the pipeline configuration, allowing for more complex workflows and integrations that depend on dynamic or contextual environment configuration.

Fixes #75