Skip to content

Commit

Permalink
Optionally delay destroy in github actions to allow investigation time
Browse files Browse the repository at this point in the history
  • Loading branch information
lindanasredin committed Apr 28, 2024
1 parent bccbbd7 commit ebf7439
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions .github/workflows/sonar_poc_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,16 +66,14 @@ jobs:
fail-fast: false
matrix:
include:
- test_name: Sonar Basic CLI
test_name_safe: sonar_basic_cli
workspace: basic_cli-${{ github.run_number }}-${{ github.run_attempt }}
- name: Sonar Basic CLI
workspace: sonar_basic_cli-${{ github.run_number }}-${{ github.run_attempt }}
example_dir: ./examples/aws/poc/sonar_basic_deployment
aws_region: eu-west-2
hub_output: '.dsf_hub.value.public_dns'
gw_output: '.dsf_agentless_gw.value."agentless-gw-0".private_ip'
- name: Sonar HADR CLI
test_name_safe: sonar_hadr_cli
workspace: hadr_cli-${{ github.run_number }}-${{ github.run_attempt }}
workspace: sonar_hadr_cli-${{ github.run_number }}-${{ github.run_attempt }}
example_dir: ./examples/aws/poc/sonar_hadr_deployment
aws_region: eu-west-1
hub_output: '.dsf_hubs.value.main.public_dns'
Expand All @@ -84,7 +82,6 @@ jobs:
name: 'Terraform ${{ matrix.workspace }}'
runs-on: ubuntu-latest
env:
TEST_NAME_SAFE: ${{ matrix.test_name_safe }}
EXAMPLE_DIR: ${{ matrix.example_dir }}
TF_WORKSPACE: ${{ matrix.workspace }}
AWS_REGION: ${{ matrix.aws_region }}
Expand Down Expand Up @@ -172,9 +169,9 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: collected-keys-${{ env.TEST_NAME_SAFE }}
name: collected-keys-${{ env.TF_WORKSPACE }}
path: |
${{ env.EXAMPLE_DIR }}/main.tf
${{ env.EXAMPLE_DIR }}/ssh_keys
- name: Set Environment Variables
run: |
Expand Down

0 comments on commit ebf7439

Please sign in to comment.