Automation Tools GitHub Actions

Magento GitHub Actions

View on GitHub

Composable GitHub Actions suite to generate release matrices, export Magento & Mage-OS data artifacts, and package FROM scratch OCI images.

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

  1. 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).
  2. EcomDev/action-build-magento-data-artifact: Installs Magento or Mage-OS inside an isolated stack (single-step or composable multi-stage) and exports compressed db.sql.gz, media.tgz, and search.tgz artifacts.
  3. EcomDev/action-build-magento-image: Packages exported data artifacts into minimal FROM scratch multi-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: true

Why 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.

More in Automation Tools

View all Automation Tools →