Open jhhazelaar opened 1 year ago
What about adding remote after clone?
We can do that with every deployment, but we need to change the remote push in Statamic and add an action to the deploy
action.
I think this option would be nice because there's no work around needed for deployer or Statamic. I'll wip up a fork and a PR and see if you like it or otherwise you can close it.
PR is ok 👍🏻
@antonmedv added a PR: https://github.com/deployphp/deployer/pull/3466 hoop you like it.
This is something that I noticed moving from v6 also and feels like a big change that I did not found in the docs.
so bump for PR :)
Made a new PR on this issue due to the wrong branch being made active after de update_code_strategy action. See: https://github.com/deployphp/deployer/pull/3540
Give deployer the option to have the remote repository in the release_path.
We use Statamic and in Statamic there's an option Git Automation, see documentation: https://statamic.dev/git-automation.
The default value of
update_code_strategy
isarchive
, but with the Git Automation we need a repository present in therelease_path
and with the optionclone
the repository is present but the origin is to a local mirror. But we need the remote origin.Work around we now use is to set
update_code_strategy
to 'clone' add een extra remote and push to remote before a new deployment.Upvote & Fund