feat(tofu): add ability to specify required tofu version
This commit is contained in:
@@ -1,6 +1,11 @@
|
|||||||
name: tf-apply
|
name: tf-apply
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
tofu-version:
|
||||||
|
required: false
|
||||||
|
default: 1.7.1
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
gpg-key:
|
gpg-key:
|
||||||
required: true
|
required: true
|
||||||
@@ -54,7 +59,7 @@ jobs:
|
|||||||
- uses: opentofu/setup-opentofu@v1
|
- uses: opentofu/setup-opentofu@v1
|
||||||
if: ${{ steps.check.outputs.code == 2 }}
|
if: ${{ steps.check.outputs.code == 2 }}
|
||||||
with:
|
with:
|
||||||
tofu_version: 1.7.1
|
tofu_version: ${{ inputs.tofu-version }}
|
||||||
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
||||||
- name: Decrypt secrets
|
- name: Decrypt secrets
|
||||||
if: ${{ steps.check.outputs.code == 2 }}
|
if: ${{ steps.check.outputs.code == 2 }}
|
||||||
|
|||||||
@@ -1,6 +1,11 @@
|
|||||||
name: tf-plan
|
name: tf-plan
|
||||||
on:
|
on:
|
||||||
workflow_call:
|
workflow_call:
|
||||||
|
inputs:
|
||||||
|
tofu-version:
|
||||||
|
required: false
|
||||||
|
default: 1.7.1
|
||||||
|
type: string
|
||||||
secrets:
|
secrets:
|
||||||
gpg-key:
|
gpg-key:
|
||||||
required: true
|
required: true
|
||||||
@@ -23,7 +28,7 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- uses: opentofu/setup-opentofu@v1
|
- uses: opentofu/setup-opentofu@v1
|
||||||
with:
|
with:
|
||||||
tofu_version: 1.7.1
|
tofu_version: ${{ inputs.tofu-version }}
|
||||||
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
cli_config_credentials_token: ${{ secrets.tf-api-token }}
|
||||||
- name: Clone repo
|
- name: Clone repo
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|||||||
Reference in New Issue
Block a user