Cli argument for branch/tag/revision to deploy
I have extended the base application like described here but it would be cool to have native support for cli arguments similar like the environment variables here: https://typo3worx.eu/2016/12/deploy-typo3-cms-using-typo3-surf/
My wish would be: ./surf deploy --branch dev or similar. This would make it easier to deploy different branches without adjusting the deployment configuration
In the title you write cli argument and in the message environment variables.
updated the text.
What about multi app deployments? All the same branch? I would prefer to not add this feature with cli arguments as you can achieve the same with
BRANCH=master surf deploy app
and use that env in your config.
But we could check some environment variables by default. Environment variables are also better in CI because the command stays the same for all jobs.