Skip to content

Commit 6a95efa

Browse files
author
Jonathan Visser
committed
Use seperate magento versions for php versions
1 parent 0844a4a commit 6a95efa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

ci/test/run-general.sh

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,12 @@ else
1010
export IMAGE_OS="buster"
1111
fi
1212

13+
if [[ "${PHP_VERSION:-8.2}" == "8.0" | "${PHP_VERSION:-8.2}" == "8.1" ]]; then
14+
export MAGENTO_VERSION="2.4.6-p10"
15+
else
16+
export MAGENTO_VERSION="2.4.8"
17+
fi
18+
1319
# Handy aliases
1420
HN="docker-compose exec -T hypernode"
1521
DP="docker-compose exec -e GITHUB_WORKFLOW -T deploy"
@@ -64,7 +70,7 @@ end_task
6470

6571
begin_task "Setting Magento 2"
6672
# Create working initial Magento install on the Hypernode container
67-
$HN composer create-project --repository=https://mirror.mage-os.org/ magento/project-community-edition:2.4.8 /data/web/magento2
73+
$HN composer create-project --repository=https://mirror.mage-os.org/ magento/project-community-edition:${MAGENTO_VERSION:-2.4.8} /data/web/magento2
6874
echo "Waiting for MySQL to be available on the Hypernode container"
6975
$HN bash -c "until mysql -e 'select 1' ; do sleep 1; done"
7076
install_magento

0 commit comments

Comments
 (0)