shelfio / chrome-aws-lambda-layer

58 MB Google Chrome to fit inside AWS Lambda Layer compressed with Brotli
MIT License
637 stars 45 forks source link

feat: add automatically layer publish #59

Closed iwaduarte closed 11 months ago

iwaduarte commented 11 months ago

Sorry, I took too long. I had a very busy last few weeks.

Adding automatic layer publish. It adds a workflow that :

layers_dispatch.yaml

1- Checks daily the repository (it can also be set for weeks, every 3 days via CRON) 2- Check the version to see if the layer was already published 3- Publish the layer to all regions 4- Update the layer_version file to avoid republishing (creates a commit)

update_readme

1 - Get all layers ARN and tag version. 2 - Updates the readme with the proper ARN and VERSION of the chrome 3 - Depends on the layers_dispatch finished successfully

vladholubiev commented 11 months ago

wow, awesome work, really appreciate it! I will try to set it up a bit later today at most tomorrow!

iwaduarte commented 11 months ago

Great @stefanzweifel ! Let me know if can help you somehow.

stefanzweifel commented 11 months ago

@iwaduarte I'm already more than happy that you prepared this PR for this project. I'm probably going to borrow some of the workflows to generate my own layers for the sidecar-browsershot project.

vladholubiev commented 11 months ago

Let's see how it works today at midnight soon!

iwaduarte commented 11 months ago

@vladgolubev Nice! If you want, you could test by removing the trigger and adding "on: push" directive.

vladholubiev commented 11 months ago

@iwaduarte awesome! I had to fix the code a bit but it works now!! Thanks A TON!!

2023-09-12T21 34 34-65qte6MR@2x