Surf icon indicating copy to clipboard operation
Surf copied to clipboard

Cli argument for branch/tag/revision to deploy

Open simonschaufi opened this issue 5 years ago • 3 comments

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

simonschaufi avatar Feb 21 '20 02:02 simonschaufi

In the title you write cli argument and in the message environment variables.

t3easy avatar Feb 21 '20 16:02 t3easy

updated the text.

simonschaufi avatar Feb 21 '20 16:02 simonschaufi

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.

t3easy avatar Feb 23 '20 12:02 t3easy