tofu plan, tofu output json capture and export test part III
This commit is contained in:
parent
382ef9743e
commit
3b9d996c50
@ -4,6 +4,9 @@ on:
|
|||||||
push:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- 'linode-test'
|
- 'linode-test'
|
||||||
|
defaults:
|
||||||
|
run:
|
||||||
|
working-directory: "${{ gitea.workspace }}/.gitea/tofu"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Explore-terraform-molecule-Gitea-Action:
|
Explore-terraform-molecule-Gitea-Action:
|
||||||
@ -16,14 +19,12 @@ jobs:
|
|||||||
- uses: opentofu/setup-opentofu@v1
|
- uses: opentofu/setup-opentofu@v1
|
||||||
- name: tofu apply
|
- name: tofu apply
|
||||||
run: "tofu init && tofu apply -auto-approve"
|
run: "tofu init && tofu apply -auto-approve"
|
||||||
working-directory: "${{ gitea.workspace }}/.gitea/tofu"
|
|
||||||
- name: tofu output capture
|
- name: tofu output capture
|
||||||
run: |
|
run: |
|
||||||
tofu output -json | jq -r '@sh "export TARGET_IP_ADDRESS=\(.act_worker_ip_address.value\)"'
|
tofu output -json | jq -r '@sh "export TARGET_IP_ADDRESS=\(.act_worker_ip_address.value\)"'
|
||||||
echo $TARGET_IP_ADDRESS
|
echo $TARGET_IP_ADDRESS
|
||||||
sleep 300
|
sleep 300
|
||||||
working-directory: "${{ gitea.workspace }}/.gitea/tofu"
|
|
||||||
- name: tofu destroy
|
- name: tofu destroy
|
||||||
run: "tofu destroy -auto-approve""
|
run: "tofu destroy -auto-approve""
|
||||||
working-directory: "${{ gitea.workspace }}/.gitea/tofu"
|
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user