From bb12412f5f3538813a7cfd97b831aacc55a2f2ee Mon Sep 17 00:00:00 2001 From: jandroav Date: Tue, 28 May 2024 14:28:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A7=20(ephemeral-cloud-infra.yml):=20U?= =?UTF-8?q?se=20inputs.stack=5Fid=20instead=20of=20hardcoding=20EPHEMERAL?= =?UTF-8?q?=5FSTACK=5FID=20for=20enabling=20and=20disabling=20stack=20in?= =?UTF-8?q?=20spacectl=20commands.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ephemeral-cloud-infra.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ephemeral-cloud-infra.yml b/.github/workflows/ephemeral-cloud-infra.yml index 71f23eb4..346b8e02 100644 --- a/.github/workflows/ephemeral-cloud-infra.yml +++ b/.github/workflows/ephemeral-cloud-infra.yml @@ -108,9 +108,9 @@ jobs: if: ${{ inputs.destroy }} working-directory: test-automation-ephemeral/infra run: | - spacectl stack enable --id $EPHEMERAL_STACK_ID + spacectl stack enable --id ${{ inputs.stack_id }} spacectl stack task --id ${{ inputs.stack_id }} --tail "terraform destroy -refresh=false -parallelism=10 -auto-approve" - spacectl stack disable --id $EPHEMERAL_STACK_ID + spacectl stack disable --id ${{ inputs.stack_id }} - name: Download Terraform state if: ${{ inputs.destroy }} @@ -123,5 +123,5 @@ jobs: if: ${{ inputs.destroy }} working-directory: test-automation-ephemeral/stack run: | - spacectl stack enable --id $EPHEMERAL_STACK_ID + spacectl stack enable --id ${{ inputs.stack_id }} terraform destroy -auto-approve