tofu plan, tofu output json capture and export test part V
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 1m40s
Gitea Actions - molecule test work / Explore-terraform-molecule-Gitea-Action (push) Failing after 1m40s
This commit is contained in:
1 parent
3dc23d3548
commit
09e9529e77
1 file changed
+3
-4
@@ -4,9 +4,6 @@ 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:
|
||||||
@@ -19,12 +16,14 @@ 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"
|
||||||
|
|
||||||
Reference in new issue
Block a user