Skip to content

Add action to upload S3 assets #30

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

Merged
merged 2 commits into from
Jun 10, 2024
Merged

Conversation

alcaeus
Copy link
Collaborator

@alcaeus alcaeus commented Jun 10, 2024

This action is similar to the one created for node in #14, with a couple of notable differences:

  • By default, it uploads all files in the S3 directory - the filenames input can be used to change this but the action will only upload assets from that temporary s3_assets directory
  • There is no dry run mode

@baileympearson I haven't touched the node action, but it could be replaced with this one once the PR is merged.

README.md Outdated
```

Optionally, you can specify which files to upload using the `filenames` input.
By default, all files in the S3 directory are uploaded.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not support dry_run and print out the files that would have been uploaded if it is set?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't think it was necessary, but I can see how it can be useful during the initial phase of setting up the tooling. I've added the dry_run parameter with slightly changed logic: it prints the filename along with the name it would receive in the bucket (minus the bucket name since we'd be relying on it being redacted) and doesn't cat the file to avoid exposing data that should be kept internal.

@alcaeus alcaeus force-pushed the upload-s3-assets branch from e189779 to a6e2937 Compare June 10, 2024 13:18
@alcaeus alcaeus requested a review from blink1073 June 10, 2024 13:19
Copy link
Member

@blink1073 blink1073 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@alcaeus alcaeus merged commit b5521e6 into mongodb-labs:main Jun 10, 2024
3 checks passed
@alcaeus alcaeus deleted the upload-s3-assets branch June 10, 2024 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants