Find solution to prevent parallel CICD jobs to steal docker login
Some efforts has been previously done in #4 (closed) and #7 (closed) . Starting a new issue because the development got stalled.
Three possible solutions:
Another alternative is to set the DOCKER_CONFIG env var to a path unique for each job. In practice, this can easily be done by usingDOCKER_CONFIG=target/docker
since gitlab-ci guaranties a fresh copy of the repo for each jobs.- Use CI_DEPLOY_TOKEN
- Use docker executor for stages that build an image. The thought is that each job will run in a separate container hence not stealing other job's docker login (gitlab-org/gitlab-runner#2745 (comment 43570144)).
When a good solution has been found, remove the exclusive
flags in gitlab-ci.yml
files as they should not be needed any longer.
Edited by mma227