Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

paas: install and update plugins automatically #76

Merged
merged 2 commits into from
Jan 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion shopware/paas-meta/6.4/.platform/applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,21 @@
echo "==================================================="
# optional: run migration automatically with deploy
bin/console database:migrate --all # Run Shopware core migrations
bin/console plugin:update "" -q # Run plugin migrations
php bin/console plugin:refresh

list_plugins_not_installed=$(php bin/console plugin:list --json | jq 'map(select(.installedAt == null)) | .[].name' -r)

for plugin in $list_plugins_not_installed; do
echo "Installing Plugin $plugin ..."
php bin/console plugin:install --activate --skip-asset-build $plugin
done

list_with_updates=$(php bin/console plugin:list --json | jq 'map(select(.upgradeVersion != null)) | .[].name' -r)

for plugin in $list_with_updates; do
echo "Updating Plugin $plugin ..."
php bin/console plugin:update --skip-asset-build $plugin
done

echo "==================================================="
echo "CLEAR CACHES"
Expand Down
Loading