go-gitea / gitea

Git with a cup of tea! Painless self-hosted all-in-one software development service, including Git hosting, code review, team collaboration, package registry and CI/CD
https://gitea.com
MIT License
45.26k stars 5.51k forks source link

Customizable environment deployment section and state overview (great for just devs doing deployment) #27443

Open uvulpos opened 1 year ago

uvulpos commented 1 year ago

Feature Description

As a DevOps engineer for different project environments (test, staging, beta, prod), I like the overview of the Azure Classic Pipeline Artifacts & Stages, to see which environment has which version deployed and to deploy another version by button click. This could trigger a CI pipeline. This makes deployment for normal devs much easier and convenient.

The button press could trigger a certain CI event like ondeployment or something and the given data is the branch the user is in. The feedback if the deploment was successful could be established by a successful or failed ci pipeline (doesn't have to be correct on manual deployments, an indication is enough for me)

On the other hand it could also mean if you develop a library, that you create a new release this way (like the go repo). You can probably think that further and further. Now I would be interested in your input. Do you think this makes sense? Feature / Environment branches can make problems and some devops engineers complain about them, so this could be a viable alternative in tracking versions for environment.

Screenshots

Azure View

Screenshot 2023-10-04 at 16 52 03

How it could look like (just dirty figma sketch)

Screenshot 2023-10-04 at 16 52 03

Screenshot 2023-10-04 at 16 52 03. (stage + production deployment is forbidden by repo in this sketch)

uvulpos commented 1 year ago

@techknowlogick do you have feedback on my proposal? Do you think it would make deployments easier for devs? Or is it just more work for DevOps engineers that do it anyway?

(Trying to start a debate)

puni9869 commented 1 year ago

Just a thought why not using a drop down as github in actions --> sample image select the branch and deploy on environment. It will be much simpler and will not clutter in UI on code page. It is related to actions page.

image
uvulpos commented 1 year ago

I'm open for any suggestions, this was just my first thought πŸ™‚ Agree with the point of beeing cluttery when you don't want it. In this View it also makes sense to me, but seems a bit hidden. πŸ€” Maybe you could implement both, so the dashboard on the main page is hideable and just visible for maintainers after you activate it in settings. wdyt?

uvulpos commented 1 year ago

I'm afraid if you dont show the menu to some devs faces they wont recognize the feature

puni9869 commented 1 year ago

We have action page for ci activity, then we can package this feature there and as a soft link we can post where ever required.

uvulpos commented 1 year ago

allrighty πŸ˜„ then lgtm πŸ‘πŸ»

enkelmedia commented 2 months ago

This would have been such a great addition and would make Gitea a β€œone stop shop” for CI/CD for a team like ours.

uvulpos commented 2 months ago

@enkelmedia Thank you for your support. Do you have any suggestions on how the feature could be even better for you? I would like to refine the idea a little more ✌🏻

enkelmedia commented 2 months ago

@uvulpos I would be happy to provide ideas on this, I've been working quite a lot with Octopus Deploy (similar to Azure Pipelines) and the overview-feature (your first screenshot) is also really valuable.

But at the end of the day, most of the time you really just want a release to be automatically deployed to test and then use some easily accessible mechanism to promote the release to stage, prod etc. (depending on your pipeline setup).

Is this something that is planned for implementation of just at a proposal stage?

uvulpos commented 2 months ago

@enkelmedia I'm afraid it is still just a proposal.