Overview
EcomDev's reusable GitHub Actions power the daily testcontainer-magento-data builds and can be dropped straight into your own Magento 2 or Mage-OS repository to build project-specific data containers containing your custom modules, database schema, and fixtures.
The Three Composable Actions
EcomDev/action-build-magento-matrix: Queries active Magento Open Source and Mage-OS releases and outputs a clean GitHub Actions matrix (PHP, database engine, OpenSearch, and release versions).EcomDev/action-build-magento-data-artifact: Installs Magento or Mage-OS inside an isolated stack (single-step or composable multi-stage) and exports compresseddb.sql.gz,media.tgz, andsearch.tgzartifacts.EcomDev/action-build-magento-image: Packages exported data artifacts into minimalFROM scratchmulti-arch (linux/amd64+linux/arm64)zstd-compressed OCI images and pushes them to your registry.
Example Workflow Step
- name: Build and push Magento data image
uses: EcomDev/[email protected]
with:
image: ghcr.io/your-org/magento-data
tags: mariadb-10.11-main
artifact-dir: ./artifacts
platforms: linux/amd64,linux/arm64
push: trueWhy Custom Project Images Matter
Instead of running bin/magento setup:upgrade and importing fixtures on every pull request, build a fresh container image whenever db_schema.xml or composer.lock changes, and let every PR test job boot in under a second.