Skip to content
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

Cli argument for branch/tag/revision to deploy #341

Open
simonschaufi opened this issue Feb 21, 2020 · 3 comments
Open

Cli argument for branch/tag/revision to deploy #341

simonschaufi opened this issue Feb 21, 2020 · 3 comments

Comments

@simonschaufi
Copy link
Collaborator

simonschaufi commented Feb 21, 2020

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

@t3easy
Copy link
Collaborator

t3easy commented Feb 21, 2020

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

@simonschaufi
Copy link
Collaborator Author

simonschaufi commented Feb 21, 2020

updated the text.

@t3easy
Copy link
Collaborator

t3easy commented Feb 23, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants