Skip to content
Snippets Groups Projects
Commit 4865fd2c authored by jurgenhaas's avatar jurgenhaas
Browse files

gitlab-ci-cd/general#3 Add support for docker image prefix to be able to load images from a proxy

parent bc2c2c19
Branches
Tags
1 merge request!35Merging develop into main
Pipeline #578970 passed
......@@ -32,7 +32,7 @@ class Handler extends BaseHandler {
* {@inheritdoc}
*/
protected function configDefault(): array {
$dockerImageProxy = $this->env->receiveGlobal('docker_image_prefix', '', '');
$dockerImageProxy = getenv('DOCKER_IMAGE_PREFIX');
if (!empty($dockerImageProxy)) {
$dockerImageProxy = str_replace('//', '/', $dockerImageProxy . '/');
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment