-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
rfc: rename deployment event to promote, add rollback event #2181
Comments
tldr; Instead an additional event type, perhaps we should consider user-specified event types instead. I've sometimes wished we had a more general way to trigger an arbitrary event type. The deploy event type has always felt like an odd duck to me. In considering additional event types that are arbitrary to some users (ex: we always roll forward, never back), I wonder if we're better off with something more general. I think being able to trigger pre-defined (by the user) event types, potentially passing params/args would satisfy deploy/rollback and other workloads:
Where For example, mimicking our current deploy event:
Or if the user wanted to go a slightly different route:
Or maybe I want to do something weird like
I could have my s3 publishing step's |
and just to support my claim above that deployment event types are causing confusion. From the gitter room today:
|
@gtaylor yes I agree. It is something we need to unwind carefully since there are security implications with regard to secrets being exposed. But agree that we seem to be moving in this direction anyways, and might as well just embrace it. |
I'm going through an upgrade from 0.8 to 1.2 and have a couple questions related to this issue. Hope it's OK that I'm commenting here even though it's closed.
|
this was fixed in master and in the
the event was renamed to |
The
deployment
event type seems to be causing some confusion. People read the documentation trying to answer the question "how do I deploy with drone" and they read the section about deployment events, which is generally not what they are looking for.I think using
promotion
would reduce terminology confusion and more accurately describes how the system is actually working. We are promoting build X to environment Y ...I would also like to introduce a rollback event. This would allow you to explicitly rollback to a previous version. The behavior would be similar to promote, except that you could use the event type in your pipeline to perform a different set of actions ...
IMPORTANT we should be able to implement this without breaking anything. When drone encounters
deployment
it can automatically convert it topromotion
behind the scenesThe text was updated successfully, but these errors were encountered: