Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

An authentication plugin for use with gitlab-ci, utilising the build in registry token authentication scheme

Project description

An authentication plugin for use with gitlab-ci, utilising the built in registry token authentication scheme.


Simply install the module onto the same server/python as your devpi-server installation pip install devpi-auth-gitlab

You will need to specify your gitlab registry server. This url can be found in the ‘Registry’ page of your gitlab project on a line like docker login

Add this server address to the devpi-server arguments when you run it. devpi-server --host --port 3141 --gitlab-registry-url

Make sure any gitlab user you want as well as the “gitlab-ci-token” user is added to your devpi index’s authentication list devpi index -c corona/prod volatile=False acl_upload="corona,gitlab-ci-token" bases="root/pypi" mirror_whitelist="*"


Usage from a Gitlab CI script is as simple as:

    - pip install devpi-client
    - devpi use https://devpi.localnet
    - devpi login "gitlab-ci-token" --password="$CI_BUILD_TOKEN"
    - devpi use "corona/prod"
    - devpi upload --formats sdist,bdist_wheel


This hasn’t been tested, but really this plugin is a docker registry authenticator…. as such you should be able to authenticate against any docker registry supporting v2 api

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for devpi-auth-gitlab, version 1.7
Filename, size File type Python version Upload date Hashes
Filename, size devpi_auth_gitlab-1.7-py2.py3-none-any.whl (3.5 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size devpi-auth-gitlab-1.7.tar.gz (3.2 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page