1. Update configuration file name
hooks:
- preBuild: ...
- postBuild: ...
hooks:
pre_build: ...
post_build: ...
...
- copy:
name: Copy config
source: app/etc/config-ca.php
destination: app/etc/config.php
...
...
- copy:
app/etc/config-ca.php: app/etc/config.php
...
...
- move:
name: Move config
source: app/etc/config-ca.php
destination: app/etc/config.php
...
...
- move:
app/etc/config-ca.php: app/etc/config.php
...
...
- symlink:
name: Symlink to target inisde persistent directory
path: satis/satis.json
target: satis.json
persistentTarget: true
- symlink:
name: Symlink to target inside magento root directory
path: package2.json
target: scandipwa/package.json
...
...
- symlink:
satis/satis.json: persistent:satis.json
package2.json: scandipwa/package.json
...
schemaVersion: 0.4.0
environments:
- name: readymage-testinging-env-a
build:
hooks:
- preBuild:
- copy:
name: Copy magento php config
source: app/etc/config-ca.php
destination: app/etc/config.php
- name: readymage-testinging-env-b
build:
hooks:
- preBuild:
- copy:
name: Copy magento php config
source: app/etc/config-aus.php
destination: app/etc/config.php
- copy:
name: Copy package.json
source: scandipwa/package-aus.json
destination: scandipwa/package.json
- copy:
name: Copy package-lock.json
source: scandipwa/package-lock-aus.json
destination: scandipwa/package-lock.json
schema_version: 1.0.0
environments:
- name: readymage-testinging-env-a
build:
hooks:
pre_build:
- copy:
app/etc/config-ca.php: app/etc/config.php
- name: readymage-testinging-env-b
build:
hooks:
pre_build:
- copy:
app/etc/config-aus.php: app/etc/config.php
scandipwa/package-aus.json: scandipwa/package.json
scandipwa/package-lock-aus.json: scandipwa/package-lock.json