Hi,
are there any plans or possibilities to publish and get NuGet packages from Gitea?
I think what I am wondering is, if there is something available or planned like GitHub Packages?
What is odd is that there is a documentation page that claims this is possible:
However, the URL they suggest is 404. I canāt find a way to generate the package repository. The documentation begins as if the package repository already exists and it does not.
I found details here that help clarify:
go-gitea:main
ā KN4CK3R:feature-packages
opened 09:51PM - 21 Jul 21 UTC
This PR adds support for multiple package registries.
Currently implemented aā¦ re
- [Composer](https://getcomposer.org/)
- [Conan](https://conan.io/)
- Container ([Docker](https://www.docker.com/) / [Helm](https://helm.sh/))
- Generic packages
- [Maven](https://maven.apache.org)
- [npm](https://www.npmjs.com/)
- [NuGet](https://www.nuget.org/)
- [PyPI](https://pypi.org/)
- [RubyGems](https://guides.rubygems.org/)
Every user/org has an own package registry for all different types of packages.
<details>
<summary>Screenshots</summary>
Package list:
![list](https://user-images.githubusercontent.com/1666336/132869070-e6326fc8-2183-4fce-bfe4-86175d1faf28.jpg)
Admin page:
![grafik](https://user-images.githubusercontent.com/1666336/144319911-faefbb40-3034-4c60-b79d-279811240439.png)
Composer package:
![composer](https://user-images.githubusercontent.com/1666336/143062873-86b98a04-3e0c-4536-80f8-1986b4a2b3c4.jpg)
Conan package:
![conan](https://user-images.githubusercontent.com/1666336/153951243-eb65ff49-950c-4601-99d4-d4586d52e5c0.png)
Docker image:
![docker1](https://user-images.githubusercontent.com/1666336/159169391-d523583e-6010-48da-9b42-e23674ef7f60.png)
![docker2](https://user-images.githubusercontent.com/1666336/159169400-42cf5936-039b-4008-915f-f730bb62e72b.png)
Helm Chart:
![grafik](https://user-images.githubusercontent.com/1666336/159169457-86364ca4-8df4-464a-a2a6-d6465a8effaa.png)
Generic package:
![generic](https://user-images.githubusercontent.com/1666336/132869098-b4f0ac3a-d0d5-47c5-9127-07454ee6bdf8.jpg)
NuGet:
![nuget](https://user-images.githubusercontent.com/1666336/132869120-66c8f9b9-4fa8-4a35-b716-08776a5c8775.jpg)
npm:
![npm](https://user-images.githubusercontent.com/1666336/132869133-6586aa64-3c71-496e-87bd-67eb3c75da11.jpg)
Maven:
![maven](https://user-images.githubusercontent.com/1666336/132869153-e43daaf9-455b-4460-9577-3f7d9cfeea82.jpg)
PyPI:
![pypi](https://user-images.githubusercontent.com/1666336/132869186-9c78bc05-ceae-4f7e-a2b7-73b8d151ff6f.jpg)
RubyGems:
![rubygems](https://user-images.githubusercontent.com/1666336/132869212-9e8b01a1-3c74-42bc-bd35-ce46677c41d9.jpg)
</details>
Instructions for testing: https://github.com/go-gitea/gitea/pull/16510#issuecomment-976344348
close #15706
close #2316
The thing missing from the documentation is the port number.
You must add port :3000
Looks like this might come out in version 1.17
1 Like
The docs for this appear to already be live on docs.gitea.io already and 1.17 hasnāt yet been released to my knowledge: Package Registry - Docs
1 Like
It was added on Release v1.17.0-rc1 Ā· go-gitea/gitea Ā· GitHub
Now that 1.17 is stable you should see package support in the current release.
I have tested it and it works.
Iām trying to push a nuget package to my gitea (on promisse) , but I having no success.
I added a source, but the push operation allways return 404 .
error: Response status code does not indicate success: 404 (Not Found).
Do you any suggestion ?
What version are you running? (It didnāt exist prior to 1.17 and that means 404)
Iām running 1.17.2 built with GNU Make 4.1, go1.18.6 .
Can you see the URL it is trying to push to? Can you visit that URL manually? This may be a network\host layer issue and not an application layer issue.
After thousands of tries, I used a solution mentioned for someone in a blog:
ātry to create a deploy keyā
When I read this, I didnāt beleive, but I tried.
So now itās working!
I could make the push!
Thankās a lot for your attention!!