From 43a592d7a100a86422bbba4a73e67eca1b5207f6 Mon Sep 17 00:00:00 2001 From: developomp Date: Mon, 15 Apr 2024 20:30:53 +0900 Subject: [PATCH] chore: replace remaining references of terraform to opentofu --- .github/workflows/opentofu.yml | 6 +++--- .husky/commit-msg | 9 +++------ .husky/pre-commit | 3 +++ .husky/terraform | 10 ---------- CONTRIBUTING.md | 2 +- README.md | 2 +- 6 files changed, 11 insertions(+), 21 deletions(-) create mode 100755 .husky/pre-commit delete mode 100755 .husky/terraform diff --git a/.github/workflows/opentofu.yml b/.github/workflows/opentofu.yml index 55bfb02..7baf4cb 100644 --- a/.github/workflows/opentofu.yml +++ b/.github/workflows/opentofu.yml @@ -1,4 +1,4 @@ -name: Terraform +name: OpenTofu on: push: @@ -9,8 +9,8 @@ permissions: contents: read jobs: - terraform: - name: Terraform + opentofu: + name: OpenTofu runs-on: ubuntu-latest defaults: run: diff --git a/.husky/commit-msg b/.husky/commit-msg index 34dd7db..dfaff41 100755 --- a/.husky/commit-msg +++ b/.husky/commit-msg @@ -1,10 +1,7 @@ #!/usr/bin/env sh + +# load nvm if available export NVM_DIR="$HOME/.nvm" - -if [ -s "$NVM_DIR/nvm.sh" ]; then - . "$NVM_DIR/nvm.sh" -fi - -. "$(dirname -- "$0")/_/husky.sh" +[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" npx --no -- commitlint --edit "${1}" diff --git a/.husky/pre-commit b/.husky/pre-commit new file mode 100755 index 0000000..15c098d --- /dev/null +++ b/.husky/pre-commit @@ -0,0 +1,3 @@ +#!/usr/bin/env sh + +tofu fmt -check diff --git a/.husky/terraform b/.husky/terraform deleted file mode 100755 index 39e09b0..0000000 --- a/.husky/terraform +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env sh -export NVM_DIR="$HOME/.nvm" - -if [ -s "$NVM_DIR/nvm.sh" ]; then - . "$NVM_DIR/nvm.sh" -fi - -. "$(dirname -- "$0")/_/husky.sh" - -terraform fmt -check diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index cdcebcf..69cf448 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -43,7 +43,7 @@ ## Setting up for deployment 1. Install the following - - [terraform CLI](https://developer.hashicorp.com/terraform/downloads) + - [OpenTofu CLI](https://opentofu.org/docs/cli) - [AWS CLI](https://aws.amazon.com/cli) 2. Setup AWS credentials ``` diff --git a/README.md b/README.md index 451317b..7a51485 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ A collection of "pomp-branded" websites. ![Next.js](https://img.shields.io/badge/next.js-222?style=for-the-badge&logo=nextdotjs) ![Svelte](https://img.shields.io/badge/svelte-222?style=for-the-badge&logo=svelte) ![SvelteKit](https://img.shields.io/badge/sveltekit-222?style=for-the-badge&logo=svelte) -![Terraform](https://img.shields.io/badge/terraform-222?style=for-the-badge&logo=terraform) +![OpenTofu](https://img.shields.io/badge/opentofu-222?style=for-the-badge&logo=opentofu) ![Firebase](https://img.shields.io/badge/firebase-222?style=for-the-badge&logo=firebase) ## Special thanks