CI pipelines
GitLab CI
Job images, npm and pip in .gitlab-ci.yml.
.gitlab-ci.yml
build:
image: packages.example.com/node:22-alpine
script:
- npm config set registry https://packages.example.com/
- npm config set "//packages.example.com/:_authToken" "$REPO_TOKEN"
- npm ci
test-python:
image: packages.example.com/python:3.12-slim
variables:
PIP_INDEX_URL: "https://__token__:${REPO_TOKEN}@packages.example.com/pypi/simple/"
script:
- pip install -r requirements.txt
For the runner to pull the job image itself from packages.example.com, add a CI/CD variable named DOCKER_AUTH_CONFIG:
{ "auths": { "packages.example.com": { "auth": "<base64 of user:token>" } } }
Make the value with printf "storefront-ci:%s" "$REPO_TOKEN" | base64.