CI pipelines
Jenkins, Azure Pipelines and others
Any CI system works the same way: a secret and the setup commands.
any CI step
# npm
npm config set registry https://packages.example.com/
npm config set "//packages.example.com/:_authToken" "$REPO_TOKEN"
npm ci
# Python
export PIP_INDEX_URL="https://__token__:${REPO_TOKEN}@packages.example.com/pypi/simple/"
pip install -r requirements.txt
# images
echo "$REPO_TOKEN" | docker login packages.example.com -u ci --password-stdin
docker pull packages.example.com/node:22-alpine
Careful
Make sure your CI system hides the secret in logs. Never run set -x or env in a step that has the token.