infra is a Terraform automation system for creating and managing multiple GitHub Pages repositories with custom subdomains.
It automates the entire infrastructure setup process, from repository creation to Pages configuration and deployment workflow generation.
register.arthurreira.dev, schedule.arthurreira.dev).The system consists of two main components:
Terraform Infrastructure (infra repo):
Deploy Workflows (app repos):
integrations/github ~> 6.0The system can be run locally or via GitHub Actions:
Local:
export TF_VAR_github_owner="arthurreira"
export TF_VAR_github_token="ghp_yourClassicPAT"
terraform -chdir=infra init
terraform -chdir=infra applyGitHub Actions:
GH_PAT secret with Classic PAT (repo + delete_repo scopes)apply to execute changesWith wildcard DNS configured (*.arthurreira.dev → GitHub Pages), the system automatically provisions multiple subdomain sites:
https://register.arthurreira.devhttps://schedule.arthurreira.devhttps://projects.arthurreira.devEach site is fully configured with Pages enabled, custom domain set, and automatic deployment workflows ready to use.