Serve a website out of an Azure Function using Azure Storage Block Blobs and keep the Azure Storage container in sync with a Github repo
- fork me from https://github.com/peteroden/GithubStorageWebhookFunctionSite
- add any APIs your site will need to use server-side code for
- use this ARM template to deploy a Function and deploy the repo
- update the below environment varaiables to point to your static website content, then set this template as the continueous deployment source for the Azure Function.
- on the github static content repo, create a new webhook and enter the function webhook URL and key as the target for pulls only
- AZURE_STORAGE_ACCOUNT
- AZURE_STORAGE_ACCESS_KEY
- STATIC_CONTENT_CONTAINER
- STATIC_CONTENT_OWNER
- STATIC_CONTENT_REPO
- You must have an index.html that will serve as the root page
- You must put all other files inside the lib directory