uselagoon / build-deploy-tool

Tool to generate build resources
2 stars 5 forks source link

refactor: add a check for username override key variable from api #263

Closed shreddedbacon closed 7 months ago

shreddedbacon commented 7 months ago

This adds a username override key to internal container registry login in a similar manner to how #132 allowed for the password to be overridden.

Given the following container-registries block, and wanting to change the username for the account defined from robot$robotic to something else, you can add a project or environment variable of the scope container_registry with the name REGISTRY_my-harbor_USERNAME and set it to whichever username it should be instead.

container-registries:
  my-harbor:
    username: robot$robotic
    password: my-special-password
    url: harbor.example.com

With a verify script https://gist.github.com/shreddedbacon/892f8206282aed54c029ed1979b6fcb6