Skip to content

Deploy command#36

Merged
zknill merged 2 commits intomasterfrom
zak/deploy-command
Jul 14, 2023
Merged

Deploy command#36
zknill merged 2 commits intomasterfrom
zak/deploy-command

Conversation

@zknill
Copy link
Copy Markdown
Contributor

@zknill zknill commented Jul 13, 2023

Add a deploy command that creates an exec and an endpoint for that exec.

Add a deploy command that creates an exec and an endpoint for that exec.
cmd/deploy.go Outdated
Comment on lines +26 to +29
const errMsg = "❌ Invalid arguments. You must pass a file path to deploy.\n" +
"See `unweave deploy --help` for more information"
ui.Errorf(errMsg)
os.Exit(1)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm guessing this is temporary? We shouldn't need this restriction once ready

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's based on (my interpretation of) the spec, I can easily change it.

Would deploy without a filepath skip the copy?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I don't see a reason where the user must specify a file. Maybe the file is already present on the container image. If not, the build will fail and that's fine as long as we tell the user why.

@noorvir noorvir self-requested a review July 13, 2023 17:35
@zknill zknill merged commit fc7afa2 into master Jul 14, 2023
@zknill zknill deleted the zak/deploy-command branch July 14, 2023 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants