0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2025-01-12 09:30:35 -05:00
forgejo/modules
FuXiaoHei c757765a9e
Implement actions artifacts ()
Implement action artifacts server api.

This change is used for supporting
https://github.com/actions/upload-artifact and
https://github.com/actions/download-artifact in gitea actions. It can
run sample workflow from doc
https://docs.github.com/en/actions/using-workflows/storing-workflow-data-as-artifacts.
The api design is inspired by
https://github.com/nektos/act/blob/master/pkg/artifacts/server.go and
includes some changes from gitea internal structs and methods.

Actions artifacts contains two parts:

- Gitea server api and storage (this pr implement basic design without
some complex cases supports)
- Runner communicate with gitea server api (in comming)

Old pr https://github.com/go-gitea/gitea/pull/22345 is outdated after
actions merged. I create new pr from main branch.


![897f7694-3e0f-4f7c-bb4b-9936624ead45](https://user-images.githubusercontent.com/2142787/219382371-eb3cf810-e4e0-456b-a8ff-aecc2b1a1032.jpeg)

Add artifacts list in actions workflow page.
2023-05-19 21:37:57 +08:00
..
actions show workflow config error on file view also () 2023-04-22 22:16:54 -04:00
activitypub
analyze
assetfs Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
auth Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
avatar Improve avatar uploading / resizing / compressing, remove Fomantic card module () 2023-05-13 20:59:11 +02:00
base
cache Update redis library to support redis v7 () 2023-04-13 18:41:04 -04:00
charset Update go tool dependencies, restructure lint targets () 2023-04-22 14:53:00 -04:00
container
context Refactor Pull Mirror and fix out-of-sync bugs () 2023-05-15 19:02:10 +00:00
csv Refactor locale number () 2023-04-17 11:37:23 +08:00
doctor Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
emoji
eventsource
generate
git Add status indicator on main home screen for each repo () 2023-05-13 21:59:01 +00:00
gitgraph
graceful Implement systemd-notify protocol () 2023-05-15 22:20:30 +00:00
hcaptcha
highlight
hostmatcher
html
httpcache Use standard HTTP library to serve files () 2023-05-13 16:04:57 +02:00
httplib Use standard HTTP library to serve files () 2023-05-13 16:04:57 +02:00
indexer Remove unnecessary code () 2023-05-10 04:57:06 +00:00
issue/template
json
label
lfs Make repository response support HTTP range request () 2023-05-09 15:34:36 +08:00
log Enable forbidigo linter () 2023-04-24 05:50:58 -04:00
markup Merge setting.InitXXX into one function with options () 2023-05-04 11:55:35 +08:00
mcaptcha
metrics
migration
mirror Rewrite queue () 2023-05-08 19:49:59 +08:00
nosql Update redis library to support redis v7 () 2023-04-13 18:41:04 -04:00
notification Rewrite queue () 2023-05-08 19:49:59 +08:00
options Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
packages Add Go package registry () 2023-05-14 23:38:40 +08:00
paginator Use more specific test methods () 2023-04-22 17:56:27 -04:00
pprof
private Fix incorrect internal response type () 2023-04-17 23:10:40 -04:00
process
proxy
proxyprotocol
public Use standard HTTP library to serve files () 2023-05-13 16:04:57 +02:00
queue Improve queue & process & stacktrace () 2023-05-11 07:45:47 +00:00
recaptcha
references
regexplru
repository Improve avatar uploading / resizing / compressing, remove Fomantic card module () 2023-05-13 20:59:11 +02:00
secret Improve decryption failure message () 2023-05-07 19:29:43 +08:00
session Update redis library to support redis v7 () 2023-04-13 18:41:04 -04:00
setting Implement actions artifacts () 2023-05-19 21:37:57 +08:00
sitemap
ssh
storage Implement actions artifacts () 2023-05-19 21:37:57 +08:00
structs Make repo migration cancelable and fix various bugs () 2023-05-11 08:25:46 +00:00
svg Use a general approach to access custom/static/builtin assets () 2023-04-12 18:16:45 +08:00
sync
system
templates Modify luminance calculation and extract related functions into single files () 2023-05-10 11:19:03 +00:00
test Rewrite queue () 2023-05-08 19:49:59 +08:00
testlogger Make testlogger output "TestLogger" prefix () 2023-05-12 14:20:29 +00:00
timeutil Fix incorrect webhook time and use relative-time to display it () 2023-05-03 19:53:43 -04:00
translation Make repo size style matches others (commits/branches/tags) () 2023-04-28 17:23:19 -04:00
turnstile
typesniffer
updatechecker
upload
uri
user
util Add Alpine package registry () 2023-05-12 17:27:50 +00:00
validation
web Improve template system and panic recovery () 2023-05-04 14:36:34 +08:00
webhook