Skip to content

Commit 2ec2fa0

Browse files
Add Mage-OS to the CI matrix
The GHCR registry also publishes Mage-OS images, as a separate package (mage-os-community-edition) rather than extra tags on the Magento one. The image name therefore becomes a matrix value: MAGENTO_VERSION is replaced by IMAGE and IMAGE_VERSION, which together form the full tag. Adds a Mage-OS 3.3.0 leg on PHP 8.4 to every matrix.
1 parent e0a4b19 commit 2ec2fa0

3 files changed

Lines changed: 24 additions & 9 deletions

File tree

.github/workflows/magento-integration-tests.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,17 +24,22 @@ jobs:
2424
matrix:
2525
include:
2626
- PHP_VERSION: php74-fpm
27-
MAGENTO_VERSION: 2.3.7-p4
27+
IMAGE: magento-project-community-edition
28+
IMAGE_VERSION: magento2.3.7-p4
2829
- PHP_VERSION: php82-fpm
29-
MAGENTO_VERSION: 2.4.6-p12
30+
IMAGE: magento-project-community-edition
31+
IMAGE_VERSION: magento2.4.6-p12
32+
- PHP_VERSION: php84-fpm
33+
IMAGE: mage-os-community-edition
34+
IMAGE_VERSION: mage-os3.3.0
3035

3136
steps:
3237
- uses: actions/checkout@v5
3338
with:
3439
fetch-depth: 0
3540

3641
- name: Start Docker
37-
run: docker run --detach --name magento-project-community-edition ghcr.io/controlaltdelete-nl/magento2-in-a-box/magento-project-community-edition:${{ matrix.PHP_VERSION }}-magento${{ matrix.MAGENTO_VERSION }}
42+
run: docker run --detach --name magento-project-community-edition ghcr.io/controlaltdelete-nl/magento2-in-a-box/${{ matrix.IMAGE }}:${{ matrix.PHP_VERSION }}-${{ matrix.IMAGE_VERSION }}
3843

3944
- name: Upload our code into the docker container
4045
run: docker cp "$(pwd)" magento-project-community-edition:/data/extensions/

.github/workflows/phpstan.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,14 @@ jobs:
2525
matrix:
2626
include:
2727
- PHP_VERSION: php74-fpm
28-
MAGENTO_VERSION: 2.3.7-p4
28+
IMAGE: magento-project-community-edition
29+
IMAGE_VERSION: magento2.3.7-p4
2930
- PHP_VERSION: php82-fpm
30-
MAGENTO_VERSION: 2.4.6-p12
31+
IMAGE: magento-project-community-edition
32+
IMAGE_VERSION: magento2.4.6-p12
33+
- PHP_VERSION: php84-fpm
34+
IMAGE: mage-os-community-edition
35+
IMAGE_VERSION: mage-os3.3.0
3136

3237
steps:
3338
- uses: actions/checkout@v5
@@ -36,7 +41,7 @@ jobs:
3641
path: module-src
3742

3843
- name: Start Docker
39-
run: docker run --detach --name magento-project-community-edition ghcr.io/controlaltdelete-nl/magento2-in-a-box/magento-project-community-edition:${{ matrix.PHP_VERSION }}-magento${{ matrix.MAGENTO_VERSION }}
44+
run: docker run --detach --name magento-project-community-edition ghcr.io/controlaltdelete-nl/magento2-in-a-box/${{ matrix.IMAGE }}:${{ matrix.PHP_VERSION }}-${{ matrix.IMAGE_VERSION }}
4045

4146
- name: Extract branch name
4247
id: extract_branch

.github/workflows/release-actions.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,17 +25,22 @@ jobs:
2525
matrix:
2626
include:
2727
- PHP_VERSION: php74-fpm
28-
MAGENTO_VERSION: 2.3.7-p4
28+
IMAGE: magento-project-community-edition
29+
IMAGE_VERSION: magento2.3.7-p4
2930
- PHP_VERSION: php82-fpm
30-
MAGENTO_VERSION: 2.4.6-p12
31+
IMAGE: magento-project-community-edition
32+
IMAGE_VERSION: magento2.4.6-p12
33+
- PHP_VERSION: php84-fpm
34+
IMAGE: mage-os-community-edition
35+
IMAGE_VERSION: mage-os3.3.0
3136

3237
steps:
3338
- uses: actions/checkout@v5
3439
with:
3540
fetch-depth: 0
3641

3742
- name: Start Docker
38-
run: docker run --detach --name magento-project-community-edition ghcr.io/controlaltdelete-nl/magento2-in-a-box/magento-project-community-edition:${{ matrix.PHP_VERSION }}-magento${{ matrix.MAGENTO_VERSION }}
43+
run: docker run --detach --name magento-project-community-edition ghcr.io/controlaltdelete-nl/magento2-in-a-box/${{ matrix.IMAGE }}:${{ matrix.PHP_VERSION }}-${{ matrix.IMAGE_VERSION }}
3944

4045
- name: Upload our code into the docker container
4146
run: docker cp "$(pwd)" magento-project-community-edition:/data/extensions/

0 commit comments

Comments
 (0)