Skip to content

renfyn/magento-mirror

 
 

Magento Mirror Phing build for CI/CD

run it localy:

Requirements : install docker and docker-compose.

first copy .env.dit to .env.
Configure your environment variables:

  • DB_HOST=database
  • DB_USER=root
  • DB_PASS=your custom password
  • DB_NAME=your db name
  • TIMEZONE=< example europe/Paris >
  • LOCALE_CODE=< example en_US or fr_FR >
  • ADMIN=< exemple admin/ admin URL path >
  • KEY=< secret key to encrypt datas >

run the following commands:

docker-compose up --build -d
docker-composer exec magento /bin/bash
composer install
vendor/bin/phing setup

use it in CI/CD:

Requirements : run it in a preconfigured ennvironment with existing Magento database.

Configure your environments variables as secrets in you CI/CD plateform.

  • DB_HOST=database
  • DB_USER=root
  • DB_PASS=your custom password
  • DB_NAME=your db name
  • TIMEZONE=< example europe/Paris >
  • LOCALE_CODE=< example en_US or fr_FR >
  • ADMIN=< exemple admin/ admin URL path >
  • KEY=< secret key to encrypt datas >

In your build stage install depedencies and prepare configuration setup:

composer install
vendor/bin/phing setup

Now you can build and push your container.

Packages

No packages published

Languages

  • PHP 85.5%
  • HTML 9.4%
  • CSS 2.5%
  • JavaScript 2.0%
  • SCSS 0.6%
  • ActionScript 0.0%