Skip to content

Commit

Permalink
4.1beta3: パッケージに初期インストールプラグインを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
okazy committed Aug 12, 2021
1 parent dba64e7 commit 84a9076
Show file tree
Hide file tree
Showing 4 changed files with 33 additions and 8 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,9 @@ jobs:
DATABASE_URL: postgres://postgres:[email protected]:5432/eccube_db
DATABASE_SERVER_VERSION: 11
run: |
rm -rf $GITHUB_WORKSPACE/app/Plugin/*
echo "APP_ENV=${APP_ENV}" > .env
echo "id,name,code,enabled,version,source,initialized,create_date,update_date,discriminator_type" > src/Eccube/Resource/doctrine/import_csv/ja/dtb_plugin.csv
bin/console doctrine:database:create --env=dev
bin/console doctrine:schema:create --env=dev
bin/console eccube:fixtures:load --env=dev
Expand All @@ -59,12 +61,19 @@ jobs:
DATABASE_URL: postgres://postgres:[email protected]:5432/eccube_db
DATABASE_SERVER_VERSION: 11
run: |
bin/console eccube:composer:require "ec-cube/Api:^2.0"
bin/console eccube:composer:require "ec-cube/recommend4"
bin/console eccube:composer:require "ec-cube/coupon4"
bin/console eccube:composer:require "ec-cube/mailmagazine4"
bin/console eccube:composer:require "ec-cube/salesreport4"
bin/console eccube:composer:require "ec-cube/relatedproduct4"
bin/console eccube:composer:require "ec-cube/securitychecker4"
bin/console eccube:composer:require "ec-cube/productreview4"
bin/console eccube:composer:require "ec-cube/api"
# bin/console eccube:composer:require "ec-cube/sitekit"
# bin/console eccube:composer:require "ec-cube/gmc"

- name: Pre Install Plugins
env:
PGPASSWORD: 'password'
run: psql eccube_db -h 127.0.0.1 -U postgres -c "select * from dtb_plugin;" -A -F, --pset footer > src/Eccube/Resource/doctrine/import_csv/ja/dtb_plugin.csv
- name: Checkout dtb_plugin
run: git checkout src/Eccube/Resource/doctrine/import_csv/ja/dtb_plugin.csv

- name: Packaging
working-directory: ../
Expand Down
2 changes: 1 addition & 1 deletion app/config/eccube/packages/eccube.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ parameters:
env(ECCUBE_COOKIE_PATH): '/'
env(ECCUBE_COOKIE_LIFETIME): 0
env(ECCUBE_GC_MAXLIFETIME): 1440
env(ECCUBE_PACKAGE_API_URL): 'https://package-api-c2.ec-cube.net'
env(ECCUBE_PACKAGE_API_URL): 'https://package-api-41beta.ec-cube.net'
env(ECCUBE_OWNERS_STORE_URL): 'https://www.ec-cube.net'
env(ECCUBE_MAINTENANCE_FILE_PATH): '%kernel.project_dir%/.maintenance'
env(ECCUBE_2FA_ENABLED): true
Expand Down
10 changes: 9 additions & 1 deletion src/Eccube/Resource/doctrine/import_csv/en/dtb_plugin.csv
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
id,name,code,enabled,version,source,create_date,update_date,discriminator_type
id,name,code,enabled,version,source,initialized,create_date,update_date,discriminator_type
"1","Web API","Api","0","2.1.0","100","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"2","Coupon Plugin for EC-CUBE4","Coupon4","0","4.1.0","101","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"3","メールマガジンプラグイン","MailMagazine4","0","4.1.0","102","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"4","商品レビュー管理プラグイン","ProductReview4","0","4.1.0","103","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"5","おすすめ商品管理プラグイン","Recommend4","0","4.1.0","104","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"6","関連商品プラグイン","RelatedProduct4","0","4.1.0","105","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"7","売上集計プラグイン","SalesReport4","0","4.1.0","106","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"8","Securitychecker4","Securitychecker4","0","4.1.0","107","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
10 changes: 9 additions & 1 deletion src/Eccube/Resource/doctrine/import_csv/ja/dtb_plugin.csv
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
id,name,code,enabled,version,source,create_date,update_date,discriminator_type
id,name,code,enabled,version,source,initialized,create_date,update_date,discriminator_type
"1","Web API","Api","0","2.1.0","100","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"2","Coupon Plugin for EC-CUBE4","Coupon4","0","4.1.0","101","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"3","メールマガジンプラグイン","MailMagazine4","0","4.1.0","102","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"4","商品レビュー管理プラグイン","ProductReview4","0","4.1.0","103","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"5","おすすめ商品管理プラグイン","Recommend4","0","4.1.0","104","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"6","関連商品プラグイン","RelatedProduct4","0","4.1.0","105","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"7","売上集計プラグイン","SalesReport4","0","4.1.0","106","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"
"8","Securitychecker4","Securitychecker4","0","4.1.0","107","0","2021-08-01 09:00:00","2021-08-01 09:00:00","plugin"

0 comments on commit 84a9076

Please sign in to comment.