bufferapp / buffer-static-upload

📁→☁️🤘 Making it easy to upload your static assets
MIT License
4 stars 4 forks source link

Project goals #1

Closed djfarrelly closed 7 years ago

djfarrelly commented 7 years ago

Purpose

This should be useful as a zero-dependency binary from which any project can use to upload static assets to an s3 bucket.

Usage

To be able to use this binary in deployment pipelines rather than write custom implementations like buffer-web's upload_assets. An example for using this might be:

$ buffer-static-upload -files "./public/js/**/*.js,./public/*.css" -dir "marketing"

Which would upload all the files from those directories relative to the marketing directory in the static.buffer.com bucket. It would then output a JSON file called staticAssetVersions.json with all of the asset paths found and their corresponding md5 hash versions.

The AWS key and secrets would be set as environment variables.

djfarrelly commented 7 years ago

Completed with https://github.com/bufferapp/buffer-static-upload/releases/tag/0.1.0 🎆