Skip to content

This application uploads standalone executables of dockerfile-laravel to a Tigris Bucket

Notifications You must be signed in to change notification settings

fly-apps/dockerfile-laravel-tigris-bucket-middleman

Repository files navigation

Dockerfile-Laravel-Tigris-Bucket-Middleman

This repository connects a Laravel application with Github, and Tigris( S3 compatible! ) to:

  1. Download artifact from workflow runs.
  2. Unzip downloaded artifact.
  3. Upload artifact file to a public Tigris bucket.

Local Installation

  1. Install the vendor requirements of the application with:
composer install
  1. Run the server with
php artisan serve
  1. Please make sure you have a Tigris bucket by following the steps here.

  2. Save the credentials you'll be receiving from step 1, and add them in your .env file. ( See the env variables added in fly.toml.example OR .env.example! )

  3. Make sure you have a Github run artifact created, which you would want to upload to your Tigris bucket. You can make one by simply creating a workflow that uploads a file. Here's one way!

  4. Next, make a request to upload with the following parameters:

run_id - the run id of the workflow used to create the artifact name - the name of the file you've indicated during upload from your workflow

  1. If all works well, and the upload completes, visit your Tigris bucket at your Tigris console and you should see the artifact( unzipped! ) uploaded in the bucket

About

This application uploads standalone executables of dockerfile-laravel to a Tigris Bucket

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published