Restore environment variables to build container

What does this MR do?

  • Restore environment variables to build container by fixing a breaking change from MR !5892 (merged) that removed environment variables from the build container when step is used. This breaks users with custom entrypoints that depend on these variables. Environment variables are now always set on the container config, allowing custom entrypoints to work as expected.

  • Add RUNNER_JOB_VAR_NAMES environment variable to build container containing gzip-compressed list of job variable names. This enables step-runner to identify and filter job variables from the OS environment, preventing environment variable size limit issues on systems like Windows.

  • Update step-runner to v0.27.0 to take in account the changes made in Filter job variables from environment (step-runner!365 - merged)

Why was this MR needed?

Prevent a breaking change with step-runner usage and provide a way to remove those job variables from step-runner environment variables.

What's the best way to test this MR?

Pipeline passes

What are the relevant issue numbers?

close step-runner#329 (closed)

Edited by Romuald Atchadé

Merge request reports

Loading