Example project for creating/deploying a MkDocs website with GitHub Actions.
temporary environments are created/destroyed with pull request open/close
url: posted to the pull request for review
status:
url: http://factually-settled-boxer-development.s3-website-us-east-1.amazonaws.com
status:
url: http://factually-settled-boxer.s3-website-us-east-1.amazonaws.com
status:
ex: run server with 'dev/local' site variables
make serve env=dev region=local
ex: run server with 'dev/us-east-1' site variables
make serve env=dev region=us-east-1
ex: run server with 'prod/us-east-1' site variables
make serve env=prod region=us-east-1
- install docker and Make (for local development)
- set up OIDC provider in AWS console
- create S3 bucket for static website hosting
- create supporting cicd resources (S3 bucket for site artifacts and IAM roles for GitHub Action workflows to assume)
see terraform code in infra/
for example on how to create required resources. ntno/tf-module-static-site-cicd
is used to create CICD IAM roles and artifact bucket.
make ubuntu
cd infra
make plan
make apply
- creates development and production site buckets
- creates IAM roles to support github action workflows