mirror of
https://github.com/nektos/act.git
synced 2026-04-26 01:15:51 +03:00
[PR #677] [MERGED] Asset server implementation #1554
Labels
No labels
area/action
area/cli
area/docs
area/image
area/runner
area/workflow
backlog
confirmed/not-planned
kind/bug
kind/discussion
kind/external
kind/feature-request
kind/question
meta/duplicate
meta/invalid
meta/need-more-info
meta/resolved
meta/wontfix
meta/workaround
needs-work
pull-request
review/not-planned
size/M
size/XL
size/XXL
stale
stale-exempt
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/act#1554
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/nektos/act/pull/677
Author: @KnisterPeter
Created: 5/7/2021
Status: ✅ Merged
Merged: 11/10/2021
Merged by: @cplee
Base:
master← Head:asset-server📝 Commits (10+)
54af35eAdd asset server and upload handling of binary filesd4c3765Add asset download parts to the asset server7f91c09Add artifact-server-path flag77a658bMove ACTIONS_RUNTIME_* vars into the withGithubEnv setup7286ebbfeat: add artifact server port as flag6ccf702test: add artifact server tests0d37f5arefactor: use fs.FS33a34c0feat: add support for gzip encoded uploads29a2504test: add artifact integration test161909achore: run act tests with asset server path📊 Changes
12 files changed (+775 additions, -2 deletions)
View changed files
📝
README.md(+3 -0)📝
cmd/input.go(+2 -0)📝
cmd/root.go(+12 -1)📝
go.mod(+1 -0)📝
go.sum(+2 -0)➕
pkg/artifacts/server.go(+278 -0)➕
pkg/artifacts/server_test.go(+296 -0)➕
pkg/artifacts/testdata/upload-and-download/artifacts.yml(+140 -0)➕
pkg/common/outbound_ip.go(+21 -0)📝
pkg/runner/run_context.go(+18 -0)📝
pkg/runner/runner.go(+2 -0)➖
pkg/runner/testdata/actions/node12/.gitignore(+0 -1)📄 Description
Description
This PR contains a naive github-actions (partially-)compatible asset server.
We only reverse engineered the success case.
The implementation is based on the awesome work of @anthonykawa: https://github.com/anthonykawa/artifact-server
This implementation should be seen as a draft and requires an architecture/design review.
Missing things
Prerequisites
--env ACTIONS_RUNTIME_URL=http://localhost:8080/must be set because it's internally used by the@action/toolkit--env ACTIONS_RUNTIME_TOKEN=foomust be set (we do not have authentication implemented)This should ideally be implemented (either as port of this PR or #329), so users don't need to set it on their own.These variables are set if act is started with
--artifact-server-pathand configured for the internal server.It is also possible to define them as environment variables using
--envfor an external artifact-server.Relates to #329
--
Closes #169
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.