Skip to content

Commit e5f35e0

Browse files
authored
MCLOUD-6907: Added generated_images_namespace configuration (#20)
1 parent 9b5cfb4 commit e5f35e0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

codeception.dist.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ modules:
2626
composer_magento_password: "%REPO_PASSWORD%"
2727
composer_github_token: "%GITHUB_TOKEN%"
2828
use_generated_images: false
29+
generated_images_namespace: "cloudft"
2930
use_cached_workdir: true
3031
version_generated_images: "%TRAVIS_BUILD_NUMBER%"
3132
printOutput: false

tests/functional/Codeception/TestInfrastructure.php

+5-1
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,11 @@ public function replaceImagesWithGenerated(): bool
495495
$path,
496496
preg_replace(
497497
'/(magento\/magento-cloud-docker-(\w+)):((\d+\.\d+|latest)(-fpm|-cli)?(-\d+\.\d+\.\d+))/i',
498-
'cloudft/$2:$4$5-' . $this->_getConfig('version_generated_images'),
498+
sprintf(
499+
'%s/$2:$4$5-%s',
500+
$this->_getConfig('generated_images_namespace'),
501+
$this->_getConfig('version_generated_images')
502+
),
499503
file_get_contents($path)
500504
)
501505
);

0 commit comments

Comments
 (0)