Skip to content

jmc265/jeeb-uk

Repository files navigation

Jeeb.uk

Resources:

Github flows

Certificates

The apex domain (jeeb.uk) needs a certificate from Let's Encrypt because Azure CDN won't generate a cert for the apex domain...

The cert is created in .cloud/certificate.tf, but it is only valid for 90 days. Therefore the terraform needs to be re-applied to create a new cert (run .cloud/run.sh).

Terraform Setup

Help from: https://gmusumeci.medium.com/getting-started-with-terraform-and-microsoft-azure-a2fcb690eb67

az login
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/<SUB-ID>" --name "Azure-DevOps"

Github actions

https://docs.microsoft.com/en-us/azure/storage/blobs/storage-blobs-static-site-github-actions

Re-create AZURE_CREDENTIALS env var for github actions:

az ad sp create-for-rbac --name github-static-builder --role contributor --scopes /subscriptions/c0f8603c-4a9c-495a-90cf-91033e31205f/resourceGroups/jeeb-uk --years 2

Links

About

Files & Code for jeeb.uk

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published