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

Support for Quality Patches Tool #166

Open
bluec opened this issue May 9, 2023 · 0 comments
Open

Support for Quality Patches Tool #166

bluec opened this issue May 9, 2023 · 0 comments

Comments

@bluec
Copy link

bluec commented May 9, 2023

Would be nice to have support for the Magento Quality Patches Tool.

Meanwhile, can anyone improve on this for me? It works but I've no idea if it is robust or correct...

(As an aside, does anyone know how the tool keeps track of which patches were applied?)

# Magento Quality Patches Tool
SSHKit.config.command_map[:magento_qp] = "/usr/bin/env php -f vendor/bin/magento-patches --"
set :magento_quality_patches, "ACSD-47079"

# Apply quality patches
namespace :local do
    namespace :patches do
        task :apply do
            if fetch(:magento_quality_patches)
                desc "Applying quality patches"
                on primary fetch(:magento_deploy_setup_role) do
                    within release_path do
                        execute :magento_qp, "apply #{fetch(:magento_quality_patches)} -n"
                    end
                end
            end
        end
    end
end

after "magento:composer:install", "local:patches:apply"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant