1
1
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-19 01:04:40 +01:00
gitea/models
FuXiaoHei c757765a9e
Implement actions artifacts (#22738)
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 Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
activities Fix commits pushed with deploy keys not shown in dashboard (#24521) 2023-05-10 04:14:58 +00:00
admin Make repo migration cancelable and fix various bugs (#24605) 2023-05-11 08:25:46 +00:00
asymkey
auth
avatars
db
dbfs
fixtures Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
git Fix missed table name on iterate lfs meta objects (#24768) 2023-05-17 23:51:22 +08:00
issues Remove duplicated issues options and some more refactors (#24787) 2023-05-18 10:45:25 +00:00
migrations Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
organization Fix team members API endpoint pagination (#24754) 2023-05-17 08:12:37 +08:00
packages Add Go package registry (#24687) 2023-05-14 23:38:40 +08:00
perm
project
pull
repo Refactor Pull Mirror and fix out-of-sync bugs (#24732) 2023-05-15 19:02:10 +00:00
secret Respect original content when creating secrets (#24745) 2023-05-16 14:49:40 +08:00
shared/types Display owner of a runner as a tooltip instead of static text (#24377) 2023-05-12 08:43:27 +00:00
system
unit Require at least one unit to be enabled (#24189) 2023-05-06 17:39:06 +08:00
unittest Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00
user
webhook
error.go
fixture_generation.go
fixture_test.go
main_test.go
migrate_test.go
migrate.go
org_team_test.go
org_team.go
org_test.go
org.go
repo_collaboration_test.go
repo_collaboration.go
repo_test.go
repo_transfer_test.go
repo_transfer.go
repo.go Implement actions artifacts (#22738) 2023-05-19 21:37:57 +08:00