Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Package Registry #16510

Merged
merged 184 commits into from
Mar 30, 2022
Merged
Show file tree
Hide file tree
Changes from 178 commits
Commits
Show all changes
184 commits
Select commit Hold shift + click to select a range
51bc02e
Added package store settings.
KN4CK3R Jul 11, 2021
48c2faf
Added models.
KN4CK3R Jul 11, 2021
3e801f9
Added generic package registry.
KN4CK3R Jul 11, 2021
3c86d2b
Added tests.
KN4CK3R Jul 11, 2021
8d922ff
Added NuGet package registry.
KN4CK3R Jul 13, 2021
2b9d96a
Moved service index to api file.
KN4CK3R Jul 13, 2021
99298b7
Added NPM package registry.
KN4CK3R Jul 14, 2021
c7fb932
Added Maven package registry.
KN4CK3R Jul 17, 2021
8aaf412
Added PyPI package registry.
KN4CK3R Jul 18, 2021
06790f9
Summary is deprecated.
KN4CK3R Jul 19, 2021
338dee3
Changed npm name.
KN4CK3R Jul 20, 2021
0544b22
Sanitize project url.
KN4CK3R Jul 20, 2021
5a3c561
Allow only scoped packages.
KN4CK3R Jul 20, 2021
ea36a75
Added user interface.
KN4CK3R Jul 20, 2021
8c6715b
Changed method name.
KN4CK3R Jul 20, 2021
ec05929
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Jul 20, 2021
4a57e22
Added missing migration file.
KN4CK3R Jul 20, 2021
b8ac3e3
Set page info.
KN4CK3R Jul 21, 2021
1386b27
Added documentation.
KN4CK3R Jul 21, 2021
9e5b2c0
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Jul 21, 2021
8ba72d7
Added documentation links.
KN4CK3R Jul 21, 2021
cab94bb
Fixed wrong error message.
KN4CK3R Jul 22, 2021
f16296c
Lint template files.
KN4CK3R Jul 22, 2021
9edf241
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Aug 7, 2021
814a942
Fixed merge errors.
KN4CK3R Aug 7, 2021
9417754
Fixed unit test storage path.
KN4CK3R Aug 7, 2021
02708f8
Switch to json module.
KN4CK3R Aug 8, 2021
cb360c0
Added suggestions.
KN4CK3R Aug 9, 2021
7264b7e
Added package webhook.
KN4CK3R Aug 10, 2021
7625900
Add package api.
KN4CK3R Aug 11, 2021
2351df1
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Aug 11, 2021
53a47de
Fixed swagger file.
KN4CK3R Aug 11, 2021
e6075ab
Fixed enum and comments.
KN4CK3R Aug 11, 2021
068b1b1
Fixed NuGet pagination.
KN4CK3R Aug 11, 2021
c515aa6
Print test names.
KN4CK3R Aug 11, 2021
55c6b2b
Added api tests.
KN4CK3R Aug 11, 2021
b856141
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Aug 12, 2021
6fadfe9
Fixed access level.
KN4CK3R Aug 15, 2021
c5a85b1
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Aug 15, 2021
e60969b
Fix User unmarshal.
KN4CK3R Aug 15, 2021
4ced953
Added RubyGems package registry.
KN4CK3R Aug 23, 2021
291cbf5
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Aug 23, 2021
c060e4a
Fix lint.
KN4CK3R Aug 23, 2021
cd1bc10
Implemented io.Writer.
KN4CK3R Aug 26, 2021
12ca06f
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Aug 27, 2021
2c9fa64
Added support for sha256/sha512 checksum files.
KN4CK3R Sep 1, 2021
41efc7c
Improved maven-metadata.xml support.
KN4CK3R Sep 2, 2021
1b666dc
Added support for symbol package uploads.
KN4CK3R Sep 6, 2021
baf7074
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 6, 2021
3e462af
Added tests.
KN4CK3R Sep 6, 2021
39a4115
Added overview docs.
KN4CK3R Sep 6, 2021
fb4f039
Added npm dependencies and keywords.
KN4CK3R Sep 7, 2021
08e6f82
Added no-packages information.
KN4CK3R Sep 7, 2021
fe02ca2
Display file size.
KN4CK3R Sep 7, 2021
1cf894b
Display asset count.
KN4CK3R Sep 7, 2021
03b7122
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 7, 2021
faf5518
Fixed filter alignment.
KN4CK3R Sep 7, 2021
f30b09f
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 8, 2021
33045a1
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 9, 2021
4f1ffa6
Added package icons.
KN4CK3R Sep 9, 2021
b1c8554
Formatted instructions.
KN4CK3R Sep 9, 2021
3c5c54f
Allow anonymous package downloads.
KN4CK3R Sep 9, 2021
c0e542c
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 9, 2021
2b9574e
Fixed comments.
KN4CK3R Sep 13, 2021
42aa098
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 13, 2021
b9e6fb1
Fixed postgres test.
KN4CK3R Sep 13, 2021
d186342
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 14, 2021
2c04814
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 26, 2021
cb16fe8
Moved file.
KN4CK3R Sep 28, 2021
af0ea8c
Moved models to models/packages.
KN4CK3R Sep 28, 2021
b24c033
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 28, 2021
7756689
Use correct error response format per client.
KN4CK3R Sep 30, 2021
483d8e5
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Sep 30, 2021
dacf577
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Oct 2, 2021
88aa66f
Use simpler search form.
KN4CK3R Oct 2, 2021
fa518b6
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Oct 10, 2021
3f89e67
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Oct 29, 2021
c444d4b
Fixed IsProd.
KN4CK3R Oct 30, 2021
f3b0d77
Restructured data model.
KN4CK3R Nov 7, 2021
1cef19a
Prevent empty filename.
KN4CK3R Nov 7, 2021
a91f780
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 9, 2021
4162676
Fix swagger.
KN4CK3R Nov 9, 2021
86af611
Implemented user/org registry.
KN4CK3R Nov 9, 2021
df1ceb5
Implemented UI.
KN4CK3R Nov 12, 2021
5dc9a9a
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 13, 2021
77485e3
Use GetUserByIDCtx.
KN4CK3R Nov 13, 2021
e01b8a7
Use table for dependencies.
KN4CK3R Nov 13, 2021
82147e6
make svg
KN4CK3R Nov 13, 2021
4d883cb
Added support for unscoped npm packages.
KN4CK3R Nov 14, 2021
6335e68
Add support for npm dist tags.
KN4CK3R Nov 15, 2021
d16c894
Added tests for npm tags.
KN4CK3R Nov 15, 2021
9e1c5c1
Unlink packages if repository gets deleted.
KN4CK3R Nov 16, 2021
bd9a516
Prevent user/org delete if a packages exist.
KN4CK3R Nov 16, 2021
b7ebbaa
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 16, 2021
a54cf5c
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 18, 2021
28b1658
Use package unlink in repository service.
KN4CK3R Nov 19, 2021
e12f3fc
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 20, 2021
1bf7106
Added support for composer packages.
KN4CK3R Nov 22, 2021
1addc8e
Restructured package docs.
KN4CK3R Nov 22, 2021
9c13368
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 22, 2021
f7d2484
Added missing tests.
KN4CK3R Nov 22, 2021
3cb36d5
Fixed generic content page.
KN4CK3R Nov 22, 2021
2892782
Fixed docs.
KN4CK3R Nov 22, 2021
7d41635
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 23, 2021
e84812c
Fixed swagger.
KN4CK3R Nov 23, 2021
87ac836
Added missing type.
KN4CK3R Nov 23, 2021
8934214
Fixed ambiguous column.
KN4CK3R Nov 23, 2021
c910dd8
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 23, 2021
a86fd67
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 24, 2021
e0f9085
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 24, 2021
abf508f
Organize content store by sha256 hash.
KN4CK3R Nov 27, 2021
b01d240
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Nov 27, 2021
1239f82
Added admin package management.
KN4CK3R Nov 30, 2021
ea24bfd
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Dec 1, 2021
14179c5
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Dec 2, 2021
16edc81
Added support for sorting.
KN4CK3R Dec 8, 2021
2b3dd59
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Jan 10, 2022
842308c
Add support for multiple identical versions/files.
KN4CK3R Jan 13, 2022
da48b2e
Added missing repository unlink.
KN4CK3R Jan 13, 2022
df81183
Added file properties.
KN4CK3R Jan 21, 2022
ec9f89e
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Feb 10, 2022
b4bf28e
make fmt
KN4CK3R Feb 10, 2022
ac23797
lint
KN4CK3R Feb 10, 2022
80a69aa
Added Conan package registry.
KN4CK3R Feb 14, 2022
ba7f050
Updated docs.
KN4CK3R Feb 14, 2022
b10ef75
Unify package names.
KN4CK3R Feb 14, 2022
168e32a
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Feb 14, 2022
83148f2
Added swagger enum.
KN4CK3R Feb 14, 2022
c6eca22
Use longer TEXT column type.
KN4CK3R Feb 14, 2022
417308d
Removed version composite key.
KN4CK3R Feb 14, 2022
6e12833
Merged package and container registry.
KN4CK3R Feb 15, 2022
bfae746
Removed index.
KN4CK3R Feb 15, 2022
c6a45ff
Use dedicated package router.
KN4CK3R Feb 15, 2022
1b4854c
Moved files to new location.
KN4CK3R Feb 15, 2022
c209e68
Updated docs.
KN4CK3R Feb 15, 2022
04b3aae
Fixed JOIN order.
KN4CK3R Feb 15, 2022
ff51ca9
Fixed GROUP BY statement.
KN4CK3R Feb 16, 2022
fa0c89c
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Feb 17, 2022
f596b58
Fixed GROUP BY #2.
KN4CK3R Feb 17, 2022
6bdf396
Added symbol server support.
KN4CK3R Feb 20, 2022
e70ec8e
Added more tests.
KN4CK3R Feb 20, 2022
0aa6069
Set NOT NULL.
KN4CK3R Feb 24, 2022
a5216a0
Added setting to disable package registries.
KN4CK3R Mar 3, 2022
779c5d9
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 12, 2022
7ba602c
Moved auth into service.
KN4CK3R Mar 13, 2022
0293e77
refactor
KN4CK3R Mar 13, 2022
9af3259
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 14, 2022
35c04f0
Use ctx everywhere.
KN4CK3R Mar 15, 2022
118770f
Added package cleanup task.
KN4CK3R Mar 17, 2022
abf3a1e
Changed packages path.
KN4CK3R Mar 18, 2022
5a4128a
Added container registry.
KN4CK3R Mar 20, 2022
3b8b071
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 20, 2022
f41cbf0
Refactoring
KN4CK3R Mar 20, 2022
17b949e
Updated comparison.
KN4CK3R Mar 20, 2022
dd953f2
Fix swagger.
KN4CK3R Mar 20, 2022
6804517
Fixed table order.
KN4CK3R Mar 20, 2022
15246c2
Use token auth for npm routes.
KN4CK3R Mar 22, 2022
250443d
Enabled ReverseProxy auth.
KN4CK3R Mar 22, 2022
00dbfe2
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 22, 2022
5f8e6b2
Added packages link for orgs.
KN4CK3R Mar 23, 2022
d8b1c69
Fixed anonymous org access.
KN4CK3R Mar 25, 2022
cb59cbd
Enable copy button for setup instructions.
KN4CK3R Mar 25, 2022
d87c42b
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 25, 2022
6e24f6f
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 26, 2022
70c3825
Merge error
KN4CK3R Mar 27, 2022
af95307
Added suggestions.
KN4CK3R Mar 27, 2022
8af95ef
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 27, 2022
1bf5b5f
Fixed merge.
KN4CK3R Mar 27, 2022
c05f9fa
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 27, 2022
4aab760
Merge branch 'main' into feature-packages
wxiaoguang Mar 28, 2022
431ba7c
Merge branch 'main' into feature-packages
wxiaoguang Mar 28, 2022
be74e4d
Handle "generic".
KN4CK3R Mar 28, 2022
3cb84ef
Added link for TODO.
KN4CK3R Mar 28, 2022
20facab
Added suggestions.
KN4CK3R Mar 28, 2022
64d02e3
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 28, 2022
3a51b83
Merge branch 'feature-packages' of https://github.com/KN4CK3R/gitea i…
KN4CK3R Mar 28, 2022
10c5f03
Changed temporary buffer filename.
KN4CK3R Mar 28, 2022
5d08e80
Merge branch 'main' into feature-packages
wxiaoguang Mar 28, 2022
dbbbfa4
Added suggestions.
KN4CK3R Mar 29, 2022
7efd245
Merge branch 'main' of https://github.com/go-gitea/gitea into feature…
KN4CK3R Mar 29, 2022
f55dcbf
Merge branch 'main' into feature-packages
wxiaoguang Mar 29, 2022
1d4ce1a
Apply suggestions from code review
wxiaoguang Mar 30, 2022
84ff7b0
Update docs/content/doc/packages/nuget.en-us.md
wxiaoguang Mar 30, 2022
16f8940
Merge branch 'main' into feature-packages
wxiaoguang Mar 30, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions custom/conf/app.example.ini
Original file line number Diff line number Diff line change
Expand Up @@ -1883,6 +1883,24 @@ PATH =
;; If CLEANUP_TYPE is set to PerWebhook, this is number of hook_task records to keep for a webhook (i.e. keep the most recent x deliveries).
;NUMBER_TO_KEEP = 10

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Cleanup expired packages
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;[cron.cleanup_packages]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Whether to enable the job
;ENABLED = true
;; Whether to always run at least once at start up time (if ENABLED)
;RUN_AT_START = true
;; Notice if not success
KN4CK3R marked this conversation as resolved.
Show resolved Hide resolved
;NO_SUCCESS_NOTICE = true
;; Time interval for job to run
;SCHEDULE = @midnight
;; Unreferenced blobs created more than OLDER_THAN ago are subject to deletion
;OLDER_THAN = 24h

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
Expand Down Expand Up @@ -2204,6 +2222,18 @@ PATH =
;; Enable/Disable federation capabilities
; ENABLED = true

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;[packages]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;
;; Enable/Disable package registry capabilities
;ENABLED = true
;;
;; Path for chunked uploads. Defaults to APP_DATA_PATH + `tmp/package-upload`
;CHUNKED_UPLOAD_PATH = tmp/package-upload

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; default storage for attachments, lfs and avatars
Expand Down Expand Up @@ -2234,6 +2264,16 @@ PATH =
;; Where your lfs files reside, default is data/lfs.
;PATH = data/lfs

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; settings for packages, will override storage setting
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;[storage.packages]
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; storage type
;STORAGE_TYPE = local

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; customize storage
Expand Down
4 changes: 4 additions & 0 deletions docs/content/doc/advanced/config-cheat-sheet.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -1070,6 +1070,10 @@ Task queue configuration has been moved to `queue.task`. However, the below conf

- `ENABLED`: **true**: Enable/Disable federation capabilities

## Packages (`packages`)

- `ENABLED`: **true**: Enable/Disable package registry capabilities
KN4CK3R marked this conversation as resolved.
Show resolved Hide resolved

## Mirror (`mirror`)

- `ENABLED`: **true**: Enables the mirror functionality. Set to **false** to disable all mirrors.
Expand Down
2 changes: 1 addition & 1 deletion docs/content/doc/developers.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ draft: false
menu:
sidebar:
name: "Developers"
weight: 50
weight: 55
identifier: "developers"
---
2 changes: 1 addition & 1 deletion docs/content/doc/developers.zh-tw.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ draft: false
menu:
sidebar:
name: "開發人員"
weight: 50
weight: 55
identifier: "developers"
---
38 changes: 19 additions & 19 deletions docs/content/doc/features/comparison.en-us.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,25 +34,25 @@ _Symbols used in table:_
## General Features

| Feature | Gitea | Gogs | GitHub EE | GitLab CE | GitLab EE | BitBucket | RhodeCode CE |
| ----------------------------------- | -------------------------------------------------- | ---- | --------- | --------- | --------- | -------------- | ------------ |
| Open source and free | ✓ | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ |
| Low resource usage (RAM/CPU) | ✓ | ✓ | ✘ | ✘ | ✘ | ✘ | ✘ |
| Multiple database support | ✓ | ✓ | ✘ | ⁄ | ⁄ | ✓ | ✓ |
| Multiple OS support | ✓ | ✓ | ✘ | ✘ | ✘ | ✘ | ✓ |
| Easy upgrade process | ✓ | ✓ | ✘ | ✓ | ✓ | ✘ | ✓ |
| Markdown support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Orgmode support | ✓ | ✘ | ✓ | ✘ | ✘ | ✘ | ? |
| CSV support | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ | ? |
| Third-party render tool support | ✓ | ✘ | ✘ | ✘ | ✘ | ✓ | ? |
| Static Git-powered pages | [✘](https://github.com/go-gitea/gitea/issues/302) | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| Integrated Git-powered wiki | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ (cloud only) | ✘ |
| Deploy Tokens | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Repository Tokens with write rights | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Built-in Container Registry | [✘](https://github.com/go-gitea/gitea/issues/2316) | ✘ | | ✓ | ✓ | ✘ | ✘ |
| External git mirroring | ✓ | ✓ | ✘ | ✘ | ✓ | ✓ | ✓ |
| WebAuthn (2FA) | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ? |
| Built-in CI/CD | ✘ | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| Subgroups: groups within groups | ✘ | ✘ | ✘ | ✓ | ✓ | ✘ | ✓ |
| ----------------------------------- | ---------------------------------------------------| ---- | --------- | --------- | --------- | -------------- | ------------ |
| Open source and free | ✓ | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ |
| Low resource usage (RAM/CPU) | ✓ | ✓ | ✘ | ✘ | ✘ | ✘ | ✘ |
| Multiple database support | ✓ | ✓ | ✘ | ⁄ | ⁄ | ✓ | ✓ |
| Multiple OS support | ✓ | ✓ | ✘ | ✘ | ✘ | ✘ | ✓ |
| Easy upgrade process | ✓ | ✓ | ✘ | ✓ | ✓ | ✘ | ✓ |
| Markdown support | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Orgmode support | ✓ | ✘ | ✓ | ✘ | ✘ | ✘ | ? |
| CSV support | ✓ | ✘ | ✓ | ✘ | ✘ | ✓ | ? |
| Third-party render tool support | ✓ | ✘ | ✘ | ✘ | ✘ | ✓ | ? |
| Static Git-powered pages | [✘](https://github.com/go-gitea/gitea/issues/302) | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| Integrated Git-powered wiki | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ (cloud only) | ✘ |
| Deploy Tokens | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Repository Tokens with write rights | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ✓ |
| Built-in Package/Container Registry | ✓ | ✘ | | ✓ | ✓ | ✘ | ✘ |
| External git mirroring | ✓ | ✓ | ✘ | ✘ | ✓ | ✓ | ✓ |
| WebAuthn (2FA) | ✓ | ✘ | ✓ | ✓ | ✓ | ✓ | ? |
| Built-in CI/CD | ✘ | ✘ | ✓ | ✓ | ✓ | ✘ | ✘ |
| Subgroups: groups within groups | ✘ | ✘ | ✘ | ✓ | ✓ | ✘ | ✓ |

## Code management

Expand Down
12 changes: 12 additions & 0 deletions docs/content/doc/packages.en-us.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
date: "2021-07-20T00:00:00+00:00"
title: "Package Registry"
slug: "packages"
toc: false
draft: false
menu:
sidebar:
name: "Package Registry"
weight: 45
identifier: "packages"
---
120 changes: 120 additions & 0 deletions docs/content/doc/packages/composer.en-us.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
date: "2021-07-20T00:00:00+00:00"
title: "Composer Packages Repository"
slug: "packages/composer"
draft: false
toc: false
menu:
sidebar:
parent: "packages"
name: "Composer"
weight: 10
identifier: "composer"
---

# Composer Packages Repository

Publish [Composer](https://getcomposer.org/) packages for your user or organization.

**Table of Contents**

{{< toc >}}

## Requirements

To work with the Composer package registry, you can use [Composer](hhttps://getcomposer.org/download/) to consume and a HTTP upload client like `curl` to publish packages.
wxiaoguang marked this conversation as resolved.
Show resolved Hide resolved

## Publish a package

To publish a Composer package perform a HTTP PUT operation with the package content in the request body.
The package content must be the zipped PHP project with the `composer.json` file.
You cannot publish a package if a package of the same name and version already exists. You must delete the existing package first.

```
PUT https://gitea.example.com/api/packages/{owner}/composer
```

| Parameter | Description |
| ---------- | ----------- |
| `owner` | The owner of the package. |

If the `composer.json` file does not contain a `version` property, you must provide it as a query parameter:

```
PUT https://gitea.example.com/api/packages/{owner}/composer?version={x.y.z}
```

Example request using HTTP Basic authentication:

```shell
curl --user your_username:your_password_or_token \
--upload-file path/to/project.zip \
https://gitea.example.com/api/packages/testuser/composer
```

Or specify the package version as query parameter:

```shell
curl --user your_username:your_password_or_token \
--upload-file path/to/project.zip \
https://gitea.example.com/api/packages/testuser/composer?version=1.0.3
```

The server reponds with the following HTTP Status codes.
wxiaoguang marked this conversation as resolved.
Show resolved Hide resolved

| HTTP Status Code | Meaning |
| ----------------- | ------- |
| `201 Created` | The package has been published. |
| `400 Bad Request` | The package name and/or version are invalid or a package with the same name and version already exist. |
wxiaoguang marked this conversation as resolved.
Show resolved Hide resolved

## Configuring the package registry

To register the package registry you need to add it to the Composer `config.json` file (which can usually be found under `<user-home-dir>/.composer/config.json`):

```json
{
"repositories": [{
"type": "composer",
"url": "https://gitea.example.com/api/packages/{owner}/composer"
}
]
}
```

To access the package registry using credentials, you must specify them in the `auth.json` file as follows:

```json
{
"http-basic": {
"gitea.example.com": {
"username": "{username}",
"password": "{password}"
}
}
}
```

| Parameter | Description |
| ---------- | ----------- |
| `owner` | The owner of the package. |
| `username` | Your Gitea username. |
| `password` | Your Gitea password or a personal access token. |

## Install a package

To install a package from the package registry, execute the following command:

```shell
composer require {package_name}
```

Optional you can specify the package version:

```shell
composer require {package_name}:{package_version}
```

| Parameter | Description |
| ----------------- | ----------- |
| `package_name` | The package name. |
| `package_version` | The package version. |
101 changes: 101 additions & 0 deletions docs/content/doc/packages/conan.en-us.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
---
date: "2021-07-20T00:00:00+00:00"
title: "Conan Packages Repository"
slug: "packages/conan"
draft: false
toc: false
menu:
sidebar:
parent: "packages"
name: "Conan"
weight: 20
identifier: "conan"
---

# Conan Packages Repository

Publish [Conan](https://conan.io/) packages for your user or organization.

**Table of Contents**

{{< toc >}}

## Requirements

To work with the Conan package registry, you need to use the [conan](https://conan.io/downloads.html) command line tool to consume and publish packages.

## Configuring the package registry

To register the package registry you need to configure a new Conan remote:

```shell
conan remote add {remote} https://gitea.example.com/api/packages/{owner}/conan
conan user --remote {remote} --password {password} {username}
```

| Parameter | Description |
| -----------| ----------- |
| `remote` | The remote name. |
| `username` | Your Gitea username. |
| `password` | Your Gitea password or a personal access token. |
| `owner` | The owner of the package. |

For example:

```shell
conan remote add gitea https://gitea.example.com/api/packages/testuser/conan
conan user --remote gitea --password password123 testuser
```

## Publish a package

Publish a Conan package by running the following command:

```shell
conan upload --remote={remote} {recipe}
```

| Parameter | Description |
| ----------| ----------- |
| `remote` | The remote name. |
| `recipe` | The recipe to upload. |

For example:

```shell
conan upload --remote=gitea ConanPackage/1.2@gitea/final
```

The Gitea Conan package registry has full [revision](https://docs.conan.io/en/latest/versioning/revisions.html) support.

## Install a package

To install a Conan package from the package registry, execute the following command:

```shell
conan install --remote={remote} {recipe}
```

| Parameter | Description |
| ----------| ----------- |
| `remote` | The remote name. |
| `recipe` | The recipe to upload. |
KN4CK3R marked this conversation as resolved.
Show resolved Hide resolved

For example:

```shell
conan install --remote=gitea ConanPackage/1.2@gitea/final
```

## Supported commands

```
conan install
conan get
conan info
conan search
conan upload
conan user
conan download
conan remove
```
Loading