https://github.com/milesgranger/artifact-mover
https://github.com/milesgranger/artifact-mover
Last synced: 7 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/milesgranger/artifact-mover
- Owner: milesgranger
- Created: 2024-04-17T06:07:36.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2024-04-17T11:08:38.000Z (about 2 years ago)
- Last Synced: 2024-12-28T02:43:51.555Z (over 1 year ago)
- Language: Rust
- Size: 23.4 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## artifact-mover GitHub Action
Move artifacts to and from S3 (other targets to come).
## Use:
```yaml
# Assumes you've setup some AWS credentials (env vars, profile, etc)
# And have set aws region either as env var (AWS_REGION) or as part of the profile
- uses: milesgranger/artifact-mover@main
with:
action: upload
name: my-artifact
path: ./some-path/to/my-artifact
bucket: my-aws-s3-bucket
profile: my-aws-profile # optional, defaults to default or using env vars
- uses: milesgranger/artifact-mover@main
with:
action: download
name: my-artifact
path: ./output-dir
bucket: my-aws-s3-bucket
```
See [the integration test](./.github/workflows/test.yml) for full a working example
### AWS Permissions
The permissions needed by this action are only `get-object`, `put-object`, and `list-object-v2` for a the given bucket. All of which could be further restricted to the `prefix-key` parameter which defaults to "artifacts". ie arn:aws:s3:::/artifacts/*