Skip to content

ntno/mkdocs-demo

Repository files navigation

mkdocs-demo

Example project for creating/deploying a MkDocs website with GitHub Actions.

live environments

integration

temporary environments are created/destroyed with pull request open/close

url: posted to the pull request for review
status:
Test Pull Request

development

url: http://factually-settled-boxer-development.s3-website-us-east-1.amazonaws.com
status:
Deploy MkDocs to Development Environment

production

url: http://factually-settled-boxer.s3-website-us-east-1.amazonaws.com
status:
Deploy MkDocs to Production Environment

local development

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

prerequisites

infrastructure (onetime setup)

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