-
-
Notifications
You must be signed in to change notification settings - Fork 162
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
[feature] Support a deploy
task type
#1698
Comments
This could maybe be a |
A preset is good but this also needs to have its own command to help triggering it on CD for example. |
|
what could be a filter to target those kind of tasks without having a name convention like |
@rhuanbarreto you could add a tag to the deploy tasks: tags:
- deploy However, I wouldn't recommend the flow that you are going for, I recommend building, testing and deploying both before and after merging to main. In any case this should probably be moved to a discussion rather than an issue. |
I only do Also, there's no possibility today to tag tasks. Only projects. I still stand on keeping as a feature request. Your suggestions don't actually help the developer to simplify the mental model. My proposal simplifies how the process works for the developer:
moon could even check for the CI=true env to guarantee the command is not being run locally and provide an override in case of an infra engineer wants to run this locally for debugging. |
Right now, moon run/check/ci have a lot of overlap, but with different implementations. I do want to standardize them all on the same implementation. Deploy can probably be placed in there at that point. |
You are right @milesj, all those commands should be like an alias to
|
Is your feature request related to a problem? Please describe.
moon check
runs alltest
andbuild
type tasks. Very useful for local development and CI. But in CD, after we merge to main, I need to add one naming convention in tasks to be calleddeploy
with the following config:Then in the CD pipeline I run
moon run :deploy
in order to deploy the whole monorepo.Describe the solution you'd like
It would be good to have one new task type called
deploy
which assume some defaults. This would simplify a lot for the ones configuring the monorepo. Also a commandmoon deploy
likemoon check
would be very useful and would make the mental model of using moon very homogeneous, once you could also use themoon deploy
command to run a deploy to a development environment locally in addition to CD.So the same task would be:
And I could run all deploy tasks with
moon deploy
Describe alternatives you've considered
Today only alternative is to run
moon run :deploy
or using filters or relying on naming conventions.The text was updated successfully, but these errors were encountered: