Skip to content
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

Feature Request: Versioning Support for S3 Uploads #4

Closed
hamidgh83 opened this issue Jun 6, 2024 · 0 comments · Fixed by #5
Closed

Feature Request: Versioning Support for S3 Uploads #4

hamidgh83 opened this issue Jun 6, 2024 · 0 comments · Fixed by #5
Assignees
Labels
enhancement New feature or request

Comments

@hamidgh83
Copy link
Member

Description:

Here is a requested feature enhancement to the package to support versioning for file uploads to S3. The current implementation uploads files to a fixed path specified in the config file. To improve the management and organization of files, especially in applications that undergo frequent updates, it would be beneficial to append a version number to the base path during the upload process.

Proposed Solution:

Introduce a --version option to the cdn:push command. This option should allow users to specify a version number that will be appended to the base path from the config file. This way, files can be versioned and organized more effectively on S3.

Use Case:

By specifying a version number, the cdn:push command can handle uploads like so:

  • Configured base path: s3://my-bucket/path/to/files/
  • Version number: 1.0.0
  • Final upload path: s3://my-bucket/path/to/files/1.0.0/

Benefits:

  • Improved file organization on S3.
  • Easier rollback to previous versions by retaining files under versioned paths.
  • Enhanced control over caching and CDN invalidation.
@hamidgh83 hamidgh83 added the enhancement New feature or request label Jun 6, 2024
@hamidgh83 hamidgh83 self-assigned this Jun 6, 2024
@hamidgh83 hamidgh83 linked a pull request Jun 10, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant