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 up
alias for build, push, deploy
#503
Conversation
This reuses all the flags/logic from the respective commands which are chained together, it adds a single local flag `--push` which is used to include the push step. Alternatives to setting `--push` would be to do so for non-localhost/127.0.0.1 gateways perhaps. Signed-off-by: John McCabe <john@johnmccabe.net>
up
alias for build, push, deployup
alias for build, push, deploy
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.
Now how about --watch? :)
Let's just have |
commands/up.go
Outdated
@@ -0,0 +1,69 @@ | |||
// Copyright (c) Alex Ellis 2017. All rights reserved. |
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.
Please use OpenFaaS Author(s) 2018
for copyright. One of the feedback from @alexellis on my previous PR :)
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.
+1 for this
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.
yup, its a WIP pr was going to address this later - funnily enough I was looking for that header text when raising the PR and noticed this - https://github.com/openfaas/faas-cli/blob/master/commands/update_gitignore.go, you'll need to update that one as well :)
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.
To merge we need the header changing and also push should be on by default, off by optional flag.
I was wondering wether it will break with the flags, f.e We did a test with @alexellis and the command runs as expected. |
Signed-off-by: John McCabe <john@johnmccabe.net>
Awesome @ivanayov I was wondering the same thing, but haven't had time to test it out yet. Good to know! |
up
alias for build, push, deployup
alias for build, push, deploy
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.
LGTM!
Derek set milestone: 0.7.0 |
Description
Add
up
alias forbuild
➡︎push
➡︎deploy
.This reuses all the flags/logic from the respective commands which are chained together, it adds a single local flag--push
which is used to include the push step.Alternatives to setting--push
would be to do so for non-localhost
/127.0.0.1
gateways perhaps. @alexellis wdyt?This reuses all the flags/logic from the respective commands which are chained together, it adds a single local flag
--skip-push
which is used to exclude the push step.Motivation and Context
How Has This Been Tested?
Built and tested against a local gateway with both a local and docker hub image push/skip-push.
No unit tests added as it just reuses the underlying commands.
Types of changes
Checklist:
git commit -s