lantrix / techdebug.com

Hugo Blog

Home Page:https://techdebug.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Techdebug

Blog for TechDebug.com

Deployed via Github actions on push to main branch.

Terraform

Remote state

Generate lockfile and commit it.

export accountId=$(aws sts get-caller-identity --query Account --output text)
terraform init \
    -backend-config="region=ap-southeast-2" \
    -backend-config="workspace_key_prefix=techdebug-com" \
    -backend-config="bucket=terraform-state-${accountId}" \
    -backend-config="key=techdebug-com-terraform.tfstate" \
    -backend-config="dynamodb_table=terraform-state"

GitHub Actions

GitHub Secrets

AWS Account ID must be published in GitHub secret AWS_ACCOUNT_ID

Hugo Blog

Ensure Hugo is installed Regen archive pages with:

pnpm install
pnpm generate-archives

Serve with pnpm serve

About

Hugo Blog

https://techdebug.com


Languages

Language:HCL 65.6%Language:JavaScript 12.7%Language:HTML 12.4%Language:Makefile 9.3%