This repository connects a Laravel application with Github, and Tigris( S3 compatible! ) to:
- Download artifact from workflow runs.
- Unzip downloaded artifact.
- Upload artifact file to a public Tigris bucket.
- Install the vendor requirements of the application with:
composer install
- Run the server with
php artisan serve
-
Please make sure you have a Tigris bucket by following the steps here.
-
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! )
-
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!
-
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
- 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