Skip to content

feat: add release automation and harden bootstrap - #2

Merged
skunxicat merged 1 commit into
mainfrom
feat/releases-and-bootstrap-hardening
Oct 22, 2026
Merged

skunxicat merged 1 commit into
mainfrom
feat/releases-and-bootstrap-hardening

Conversation

@skunxicat

Copy link
Copy Markdown
Member

Summary

Adds semantic-release automation to the project and hardens the bootstrap installer, plus the earlier dependency / state-locking updates.

Changes

Releases (new)

  • .releaserc.yml — semantic-release driven by Conventional Commits (feat/fix/perf release; docs/chore changelog-only). Scaffold, not a published module, so only functional changes cut a release.
  • .github/workflows/release.yml — validate (terraform fmt/init/validate scoped to infra/) then semantic-release on push to main.

State backend

  • Default tfstate-backend to S3 native locking (s3_state_lock_enabled = true, use_lockfile) and disable the DynamoDB lock table (dynamodb_enabled = false).
  • Bump module 1.7.0 → 1.9.0 (required for the lock vars). label/null already at latest 0.25.0. Backend stays enabled = false (soft mode) — only the strategy changed.

bootstrap hardening

  • set -euo pipefail, curl -fsSL on both download paths, curl/tar preflight, safe ${GITHUB_TOKEN:-}.
  • Drop the ~/.zshrc mutation in favor of source ./activate.
  • Fix the .gitignore merge (host entries preserved as base, cloudless entries appended + deduped; no-host case keeps cloudless's).

Docs / fmt

  • terraform fmt on infra/ (cosmetic only).
  • README: document activate, add a Releases section, fix tf varsion → tf version, align bootstrap/PATH instructions.

Tested

  • terraform init -upgrade + terraform validate on infra/ — pass.
  • bash -n bootstrap — pass; .gitignore merge exercised in a temp dir (host-has / host-has-none, with an overlapping entry) — correct ordering and dedup.
  • Both YAML config files parse.

Not done

  • No terraform apply — backend still enabled = false; soft mode, nothing applied.
  • Heavier CI gates (tflint/checkov/terraform test) omitted — none exist in this repo yet.

- add .releaserc.yml (semantic-release, conventional commits) and
  .github/workflows/release.yml (validate infra/ then release on push to main)
- default tfstate-backend to S3 native locking (use_lockfile);
  disable DynamoDB lock table; bump module 1.7.0 -> 1.9.0
- harden bootstrap: set -euo pipefail, curl -fsSL, tool preflight,
  drop ~/.zshrc mutation in favor of ./activate, fix .gitignore merge
- terraform fmt infra/ and refresh README (activate, releases, tf version typo)
@skunxicat
skunxicat merged commit 9cc9e4e into main Oct 22, 2026
2 checks passed
@skunxicat
skunxicat deleted the feat/releases-and-bootstrap-hardening branch October 22, 2026 02:34
github-actions Bot pushed a commit that referenced this pull request Oct 22, 2026
## 1.0.0 (2026-10-22)

* feat: add semantic-release automation and harden bootstrap (#2) ([9cc9e4e](9cc9e4e)), closes [#2](#2)
* feat: initial version ([41af782](41af782))
* fix: fix bootstap shebang ([715e813](715e813))
* fix: fix old repo leftovers ([7295c1a](7295c1a))
* refactor: relax version constraints ([8f1e8b9](8f1e8b9))
* chore: add activate file for environment bootstrap ([60332fd](60332fd))
* chore: cleanup ([82f04c4](82f04c4))
* chore: initial commit ([cc9b49d](cc9b49d))
* chore: upgrade cloudposse/tfstate-backend/aws to v1.7.0 ([1ebc770](1ebc770))
* docs: update README.md ([c50a82a](c50a82a))
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 1.0.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant