Magento2 - allow skipping static deployment of themes which exist in CI/CD pipeline #4176
Unanswered
johnorourke
asked this question in
Features
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Problem
Deployment of a lot of locales/themes takes a long time (our case - 90 themes x 1-3 locales). Building them all on every deployment is not necessary.
Solution
Use a custom cache or artifact to save the last successful copy of pub/static/frontend/ and then, during the deploy:assets:frontend job, skip themes which already exist.
Changes
In the deployment task, if a flag is set, skip any themes which exist under pub/static/frontend/.
Caveats
Configuration:
Bitbucket pipelines example:
Deploy.php:
PR incoming soon.
Beta Was this translation helpful? Give feedback.
All reactions