Gitea: [Feature] store/link attachments externaly

Created on 21 Jan 2020  路  10Comments  路  Source: go-gitea/gitea

  • Gitea version (or commit ref): 1.12.0

Description

In my organisation we use a nexus repository to store the binary file produce from source code.
Creating a release's attachment by uploading this binary to gitea is redundant and double the disk usage.
It would be great to allow the use of an url instead of a file.

kinproposal

Most helpful comment

We should probably only create the release archive on first download. That will speed up our pushing of tags too.

All 10 comments

@scandinave i gues 1.13.6 is your Go version

for now you can insert links in the body
-> https://try.gitea.io/api/swagger#/repository/repoCreateRelease

do you mean [Feature] store/link attachments externaly ?

@6543 oups yeah, the version is 1.12.0
Actually it's what we do in the body.
And yeah you can call it [Feature] store/link attachments externaly

I update my issue.

We should probably only create the release archive on first download. That will speed up our pushing of tags too.

Or make it to a async task? (via go or add a Queue)?

We should probably only create the release archive on first download. That will speed up our pushing of tags too.

This would be _really nice_ for repositories imported from CVS or similar; my repos have hundreds of tags that were never meant to be used as releases (more like checkpoints), or they were, but in most cases nobody cares about any release but the latest.

We could even delete old archives from time to time. 馃榿

@guillep2k that's exactly the use case I'm thinking of

9567 will support to store binaries on s3-like storage, so that you could share them.

Is this same as #9107?

kind of ... (from original issue perspective) #9107 is only for release ... gut i like the idear to add attachemnts via URL direcly to comments, issues, releases ... (most usecase is probably later via API)

Was this page helpful?
0 / 5 - 0 ratings

Related issues

thehowl picture thehowl  路  3Comments

flozz picture flozz  路  3Comments

adpande picture adpande  路  3Comments

Fastidious picture Fastidious  路  3Comments

internalfx picture internalfx  路  3Comments