Skip to content

Add support for private package registries (python, npm, ...) #554

@vdel

Description

@vdel

It would be great to have native support for accessing (read) private package registries in order to host our private libraries and re-use them across various projects.

Gitlab has a Python registry already: https://docs.gitlab.com/ee/user/packages/pypi_repository/

Both Gitlab and Github have a npm registry as well.

I imagine a dedicated section where we could expose our personal tokens through environment variables, e.g.:

registries:
  - python:
      target: ~/.pypirc
      username: ${PYTHON_REGISTRY_USER}
      token: ${PYTHON_REGISTRY_TOKEN}
  - npm:
      target: /app/.npmrc
      token: ${NPM_REGISTRY_TOKEN}

The build server could do the same with its own CI tokens.

Regarding the target, it is unclear if it is necessary, it would be even better in terms of dev UX if we avoid it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions