getlocalci / local-ci

Local CI is a VS Code extension that runs CircleCI® workflows locally, with Bash access and persistence. Not affiliated with CircleCI®.
https://marketplace.visualstudio.com/items?itemName=LocalCI.local-ci
GNU General Public License v2.0
11 stars 6 forks source link

Allow injecting environment variables to jobs #237

Closed kienstra closed 1 year ago

kienstra commented 1 year ago

Changes

Testing Steps

  1. Add this to VS Code's settings.json:
    "local-ci.command.job.enable-post-command": true
  1. Run a job
  2. You'll be prompted to enter something: Screen Shot 2022-12-05 at 4 17 27 PM
  3. Enter -e FOO=BAR …or any other environment variable. The -e flag tells the CLI to expect environment variables.
  4. Expected: That env var will appear in the job, redacted: Screen Shot 2022-12-05 at 4 09 04 PM