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
44.24k stars 5.42k forks source link

Enhanced Environment Variable Management #32090

Open ksaif06 opened 3 days ago

ksaif06 commented 3 days ago

Feature Description

Currently, Gitea provides a basic environment variable management system. However, for complex projects with multiple environments (e.g., development, staging, production), managing and organizing environment variables can be cumbersome.

Proposed Solution:

Custom Environment Profiles: Introduce a new feature to create and manage custom environment profiles within a repository. Each profile can define a set of environment variables specific to that environment. Environment Variable Groups: Allow users to group related environment variables together for better organization and management. Variable Scoping: Provide options to control the scope of environment variables (e.g., repository-level, branch-level, workflow-level).

Benefits:

Improved Organization: Custom environment profiles and grouping help manage environment variables effectively. Simplified Configuration: Centralized management of environment variables reduces configuration complexity. Increased Flexibility: The ability to define environment variables at different scopes provides greater flexibility in CI/CD workflows.

By implementing these enhancements, Gitea can provide a more robust and user-friendly environment variable management system, making it easier for developers to manage complex projects.

Screenshots

No response

cob-web-corner commented 1 day ago

Definitively a needed feature for modern CI/CD (actions); workarounds right now involve old-school system env configuration in the repo itself.

Unless someone can suggestion a better alternative, besides an external build system