-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Add an option to build magento artifact from the repository #3456
Add an option to build magento artifact from the repository #3456
Conversation
docgen workflow was failing, I amended the commit to update the documentation. |
@schmengler @peterjaap I'm not totally sure I understand what happens here. Can I have a second opinion? From my point of view, I'm happy to merge it. |
@Schrank I have 4 MR's to look at by the other Fabian :P @schmengler I'll try to get around to it tomorrow! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The feature looks fine, but documentation is missing
I added better documentation about the feature:
|
@guvra question: How would one specify which branch should be built? |
I don't know if I should add a comment about recommending to set the |
posted at the same time :D yes, please do! As you see I was confused |
@schmengler I just thought of another way of doing it:
With this logic, we don't need It's more simple, but maybe also more confusing/dangerous? Can be considered as a compatibility break too. |
tbh, I wasn't aware of these CLI arguments, but that seems to be exactly the way they are intended to be used, like in the deployer/recipe/deploy/update_code.php Lines 73 to 74 in fe38743
Since the magento recipe currently does not use the |
LGTM! @antonmedv merge at will |
Currently, the Magento 2 recipe only allows to build the artifact file from the current working directory.
This works perfectly fine when building the artifact on a platform dedicated to deployments (e.g. gitlab CI), but it makes it nearly impossible to deploy from a local environment for the following reasons:
The goal of this PR is to add an option that works around this limitation, by cloning the project repository in a temporary folder, and creating the artifact file from this repository.
Example usage:
If no repository was specified (
repository
option), an error is displayed.Advantages: