No description
- HCL 100%
| .github/workflows | ||
| infra | ||
| .gitignore | ||
| LICENSE.txt | ||
| README.md | ||
Deploy Hugo site to Bunny.net
A simple example of how one can deploy a hugo site with bunny.net storage & CDN. You can read more avout this this in this blog post.
Instructions
-
Copy the
.github/workflowsfolder and theinfrafolder into your hugo website repository. -
Create the following secret & vars:
- Secret: BUNNY_KEY, your bunny.net API token
- Variable: FQDN, the FQDN of your website
- Variable: STATE_SZ_ID, the ID of an existing storage zone to store your TF state
-
Verify the functionality of your site at {fqdn with dashes instad of dots}.b-cdn.net
-
Create an ANAMA/ALIAS record that points towards {fqdn with dashes instad of dots}.b-cdn.net
-
Enjoy!
Note that this does not encrypt the terraform state. If you end up connecting that storage zone to a pull-zone you will be publishing sensitive data.