siemens / kas

Setup tool for bitbake based projects
MIT License
353 stars 144 forks source link

Environment variable expansion for `url` and `refspec` #64

Closed HerrMuellerluedenscheid closed 2 years ago

HerrMuellerluedenscheid commented 2 years ago

Hey,

Is it possible to use environment variables inside kas config files? That would be very convenient to inject e.g. a deploy token in a CI pipeline. For example:

repos:
  meta-something:
    url: https://oauth2:${OAUTH_DEPLOY_TOKEN}@git.somecompany.org/reponame
    refspec: ${DEPLOY_REFSPEC}

Thanks in advance! Marius

HerrMuellerluedenscheid commented 2 years ago

We use some dedicated pre-processor now for that as it is rather related to yaml parseing.