Skip to content

Commit

Permalink
🔧 (ephemeral-cloud-infra.yml): Use inputs.stack_id instead of hardcod…
Browse files Browse the repository at this point in the history
…ing EPHEMERAL_STACK_ID for enabling and disabling stack in spacectl commands.
  • Loading branch information
jandroav committed May 28, 2024
1 parent be192c2 commit bb12412
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ephemeral-cloud-infra.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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

0 comments on commit bb12412

Please sign in to comment.