-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: update ci to tofu * fix: update ci versions
- Loading branch information
Showing
3 changed files
with
36 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,8 @@ on: | |
env: | ||
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/gratibot | ||
IMAGE_PATH: ${{ github.repository_owner }}/gratibot | ||
tofu_version: '~1.9' | ||
tg_version: '0.72.0' | ||
|
||
permissions: | ||
id-token: write | ||
|
@@ -53,9 +55,13 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: Setup Tofu | ||
uses: opentofu/[email protected] | ||
with: | ||
tofu_version: ${{ env.tofu_version }} | ||
- name: Setup Terragrunt | ||
run: | | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v0.45.11/terragrunt_linux_amd64 | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v${{ env.tg_version }}/terragrunt_linux_amd64 | ||
sudo mv terragrunt_linux_amd64 /usr/local/bin/terragrunt | ||
sudo chmod +x /usr/local/bin/terragrunt | ||
- name: Plan Gratibot prod deployment | ||
|
@@ -80,9 +86,13 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: Setup Tofu | ||
uses: opentofu/[email protected] | ||
with: | ||
tofu_version: ${{ env.tofu_version }} | ||
- name: Setup Terragrunt | ||
run: | | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v0.45.11/terragrunt_linux_amd64 | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v${{ env.tg_version }}/terragrunt_linux_amd64 | ||
sudo mv terragrunt_linux_amd64 /usr/local/bin/terragrunt | ||
sudo chmod +x /usr/local/bin/terragrunt | ||
- name: Deploy Gratibot to Prod | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,8 @@ on: | |
|
||
env: | ||
IMAGE_PATH: ${{ github.repository_owner }}/gratibot | ||
tofu_version: '~1.9' | ||
tg_version: '0.72.0' | ||
|
||
permissions: | ||
id-token: write | ||
|
@@ -43,8 +45,12 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: Setup Tofu | ||
uses: opentofu/[email protected] | ||
with: | ||
tofu_version: ${{ env.tofu_version }} | ||
- name: Terraform fmt check | ||
run: terraform fmt -check -recursive | ||
run: tofu fmt -check -recursive | ||
|
||
validate: | ||
name: "Terraform validate check" | ||
|
@@ -53,9 +59,13 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: Setup Tofu | ||
uses: opentofu/[email protected] | ||
with: | ||
tofu_version: ${{ env.tofu_version }} | ||
- name: Setup Terragrunt | ||
run: | | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v0.45.11/terragrunt_linux_amd64 | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v${{ env.tg_version }}/terragrunt_linux_amd64 | ||
sudo mv terragrunt_linux_amd64 /usr/local/bin/terragrunt | ||
sudo chmod +x /usr/local/bin/terragrunt | ||
- name: Terraform validate check | ||
|
@@ -74,9 +84,13 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: Setup Tofu | ||
uses: opentofu/[email protected] | ||
with: | ||
tofu_version: ${{ env.tofu_version }} | ||
- name: Setup Terragrunt | ||
run: | | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v0.45.11/terragrunt_linux_amd64 | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v${{ env.tg_version }}/terragrunt_linux_amd64 | ||
sudo mv terragrunt_linux_amd64 /usr/local/bin/terragrunt | ||
sudo chmod +x /usr/local/bin/terragrunt | ||
- name: Plan Gratibot staging deployment | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,8 @@ on: | |
env: | ||
IMAGE_NAME: ghcr.io/${{ github.repository_owner }}/gratibot | ||
IMAGE_PATH: ${{ github.repository_owner }}/gratibot | ||
tofu_version: '~1.9' | ||
tg_version: '0.72.0' | ||
|
||
permissions: | ||
id-token: write | ||
|
@@ -57,9 +59,13 @@ jobs: | |
steps: | ||
- name: Checkout | ||
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | ||
- name: Setup Tofu | ||
uses: opentofu/[email protected] | ||
with: | ||
tofu_version: ${{ env.tofu_version }} | ||
- name: Setup Terragrunt | ||
run: | | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v0.45.11/terragrunt_linux_amd64 | ||
wget https://github.com/gruntwork-io/terragrunt/releases/download/v${{ env.tg_version }}/terragrunt_linux_amd64 | ||
sudo mv terragrunt_linux_amd64 /usr/local/bin/terragrunt | ||
sudo chmod +x /usr/local/bin/terragrunt | ||
- name: Deploy Gratibot to Nonprod | ||
|