Skip to content

Commit

Permalink
chore: fix teardown
Browse files Browse the repository at this point in the history
  • Loading branch information
ajasnosz committed Jul 5, 2024
1 parent 0aa2e5e commit f915c28
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -351,11 +351,15 @@ jobs:
- name: Teardown
if: always()
run: |
API_PASSWORD_DEC=$(echo "$API_PASSWORD" | openssl aes-256-cbc -d -pbkdf2 -a -pass pass:"$ENCRYPT_KEY")
cf login --skip-ssl-validation -a "$API_ENDPOINT" -u "$API_USER" -p "$API_PASSWORD_DEC"
echo "Teardown deployment env"
cf target -o "splunk-ci-org" -s "splunk-ci-space"
cf delete splunk-firehose-nozzle -f
cf delete data_gen -f
cf delete-org splunk-ci-org -f
env:
ENCRYPT_KEY: ${{ secrets.ENCRYPT_KEY }}


teardown-env:
Expand Down

0 comments on commit f915c28

Please sign in to comment.