Add the ability to set tools download source (Gitea)
This change adds 2 new options to gitea forge endpoints: * Tools metadata URL * Use internal tools URLs By default, GARM looks in the releases page of the gitea arc_runner to determine where it can download the runner binary from for a particular OS/arch. The tools metadata URL option can be set on an endpoint and can point to a mirror of the upstream repo. The requirement is that the asset names exactly mirror upstream naming conventions. The second option disables GARM calling out to the tools metadata URL entirely. GARM has some hardcoded values for nightly binaries. If this option is checked, GARM will use those values, without making any kind of outgoing API call to determine availability. This is useful in air-gapped environments. Signed-off-by: Gabriel Adrian Samfira <gsamfira@cloudbasesolutions.com>
This commit is contained in:
parent
56618473d1
commit
5fdb69ac18
91 changed files with 700 additions and 185 deletions
|
|
@ -409,7 +409,9 @@ type GithubEndpoint struct {
|
|||
UpdatedAt time.Time
|
||||
DeletedAt gorm.DeletedAt `gorm:"index"`
|
||||
|
||||
EndpointType params.EndpointType `gorm:"index:idx_endpoint_type"`
|
||||
EndpointType params.EndpointType `gorm:"index:idx_endpoint_type"`
|
||||
ToolsMetadataURL string `gorm:"type:text collate nocase"`
|
||||
UseInternalToolsMetadata bool
|
||||
|
||||
Description string `gorm:"type:text"`
|
||||
APIBaseURL string `gorm:"type:text collate nocase"`
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue