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
linda.nasredin committed Apr 28, 2024
1 parent eec180c commit f3114ce
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dsf_poc_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: collected-keys
name: collected-keys-${{ env.TF_WORKSPACE }}
path: |
${{ env.EXAMPLE_DIR }}/ssh_keys
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dsf_poc_cli_azure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: collected-keys
name: collected-keys-${{ env.TF_WORKSPACE }}
path: |
${{ env.EXAMPLE_DIR }}/ssh_keys
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/dsf_single_account_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: collected-keys
name: collected-keys-${{ env.TF_WORKSPACE }}
path: |
${{ env.EXAMPLE_DIR }}/ssh_keys
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/sonar_single_account_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY_STAGE }}
JUMP_SERVER_KEY: ${{ secrets.JUMP_SERVER_KEY }}
AWS_REGION: ap-southeast-1
TF_WORKSPACE: single_account
TF_WORKSPACE: sonar_single_account_cli
DESTROY_DELAY_SECONDS: 1800

permissions:
Expand Down Expand Up @@ -238,7 +238,7 @@ jobs:
if: always()
uses: actions/upload-artifact@v4
with:
name: collected-keys
name: collected-keys-${{ env.TF_WORKSPACE }}
path: |
${{ env.EXAMPLE_DIR }}/ssh_keys
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/sonar_upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -200,11 +200,12 @@ jobs:
echo agentless_gw_0_ip=$(terraform -chdir=$DEPLOYMENT_EXAMPLE_DIR output -json | jq -r '.sonar.value.agentless_gw_main[0].private_ip') >> $GITHUB_ENV
echo dsf_ssh_key_file_name=../../../$DEPLOYMENT_EXAMPLE_DIR/$(terraform -chdir=$DEPLOYMENT_EXAMPLE_DIR output -json | jq -r '.dsf_private_ssh_key_file_path.value') >> $GITHUB_ENV
- name: Collect Artifacts for deployment
- name: Collect Artifacts of deployment
id: collect-artifacts
if: always()
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: collected-keys
name: collected-keys-${{ env.TF_WORKSPACE }}
path: |
${{ env.DEPLOYMENT_EXAMPLE_DIR }}/ssh_keys
Expand Down

0 comments on commit f3114ce

Please sign in to comment.