moodlehq / moodle-docker

A docker environment for moodle developers
GNU General Public License v3.0
406 stars 252 forks source link

Login in dockerhub when possible to avoid pull limits #150

Closed stronk7 closed 3 years ago

stronk7 commented 3 years ago

With current pull limits @ dockerhub, it's possible to get failed jobs just running 2-3 builds (each one having a good number of jobs).

With this patch, if both DOCKER_USER and DOCKER_TOKEN are defined as environmental variables, they will be used to perform a login to dockerhub, getting rid of pull limits.

stronk7 commented 3 years ago

Please, do not merge this yet, it's WIP stuff (I just needed to make the PR to verify the dockerhub credentials are working as expected).

stronk7 commented 3 years ago

It's passing ok: