Scheduled deployment #2281
-
Clear and concise description of the problemCI can be long to run, and it must pass before the deploy button is displayed. So users who want to deploy something have to come back regularly to woodpecker to check if the CI have finished. Suggested solutionI suggest that, when the CI is still running, a "Deploy on success" button should be displayed. This way users could just hit that button and go do what they want, knowing that deployment will happen if the CI is green. AlternativeNo response Additional contextThis is inspired from the Gitlab "Merge on success" button that is displayed on merge requests when the CI is running. Validations
|
Beta Was this translation helpful? Give feedback.
Replies: 8 comments
-
This can be already be done by adding step using woodpeckerci/plugin-trigger to trigger deployment task in same/other repositories |
Beta Was this translation helpful? Give feedback.
-
I understand that this plugin could be used for automated deployment, but I am not sure it would cover this usecase. In the scenario I describe, I expect users to manually hit the |
Beta Was this translation helpful? Give feedback.
-
it's an edge-case feature request ... normally you either are confident in the pipeline checks and let it deploy automatically ... or you deploy manually deploy manually as it would for a auto-deploy is ... strange I personally thing that this feature just add complexity and don't encourage good practices ... so my vote goes against adding this ... |
Beta Was this translation helpful? Give feedback.
-
cc @woodpecker-ci/maintainers ☝️ |
Beta Was this translation helpful? Give feedback.
-
Thank you for your answer. I will try to give a little more context. I understand that you suggest an automatic deploy strategy. This would be for instance, having one branch for each deployment target, and automatically deploy those branches on each new commit. However I think that would not be flexible enough for me. As I generally don't want to deploy each commit, this would force me to add a lot more branches to my workflow, just for the sake of deployment. I fear this would be a hell of merges and |
Beta Was this translation helpful? Give feedback.
-
Its an interesting feature, but the use case sounds pretty extraordinary to me as well. 😅 You either want it to be manual or automatic IMO. Why isn't using the manual workflow an option for you? You run basic checks on push automatically and if that is successful you can manually trigger a job for publishing/ releasing and define your target environment for it. As you want to select an environment anyways you always need the manual step. |
Beta Was this translation helpful? Give feedback.
-
I am not sure how the manual workflow would work with my usecase. 🤔
Is this what you are thinking about?
Indeed. The idea is not to remove that unavoidable manual step, it is just to allow users to do it early. At the moment, each time I want to deploy, I have to wait for the unit tests to finish and pass, and come back to woodpecker to trigger the deployment. I would love to be able to schedule the deployment when the CI is running, go to do other stuff and not having to get back to woodpecker with the hope CI is finished, in order to trigger the deployment. This is similar to the gitlab 'merge whene pipeline succeeds' feature I often use on gitlab: |
Beta Was this translation helpful? Give feedback.
-
As we explained, this should be possible with the trigger plugin (which auto-triggers a manual pipeline). Otherwise that's a kinda rare usecase, and I don't think we can support every small change. Thus, I'm closing this. |
Beta Was this translation helpful? Give feedback.
As we explained, this should be possible with the trigger plugin (which auto-triggers a manual pipeline). Otherwise that's a kinda rare usecase, and I don't think we can support every small change.
Thus, I'm closing this.