From 19ca0a3b70105c4f17b2405d426cd48a8b7e1315 Mon Sep 17 00:00:00 2001 From: Mike Holloway Date: Mon, 6 Jan 2025 22:25:24 -0500 Subject: [PATCH] CI-CD debugging, opentofu/setup-tofu action, tofu state pull, jq, new tofu-plan repo with barebones resources in root module --- .gitea/workflows/linode.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/linode.yml b/.gitea/workflows/linode.yml index 66392ad..660494e 100644 --- a/.gitea/workflows/linode.yml +++ b/.gitea/workflows/linode.yml @@ -24,7 +24,7 @@ jobs: - name: tofu Checkout uses: actions/checkout@v4 with: - repository: 'seasharp/eqit_tofu-plan' + repository: 'seasharp/eqit_tofu-import' ref: 'refs/heads/main' path: 'tofu' ssh-key: |- @@ -45,8 +45,8 @@ jobs: run: | cd tofu tofu init - tofu import module.main_vpc_subnet.linode_vpc.eqit_vpc ${{ env.EQIT_VPC }} - tofu import module.main_vpc_subnet.linode_vpc_subnet.eqit_vpc_subnet "${{ env.EQIT_VPC }}, ${{ env.EQIT_VPC_SUBNET }}" + tofu import linode_vpc.eqit_vpc ${{ env.EQIT_VPC }} + tofu import linode_vpc_subnet.eqit_vpc_subnet "${{ env.EQIT_VPC }}, ${{ env.EQIT_VPC_SUBNET }}" - id: plan run: "cd tofu; for id in $(tofu state pull | jq '.resources[1].instances[0].attributes.linodes[].id'); do tofu import linode_instance.eqit_instance $id;done"