mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-08 23:06:09 -05:00
ci: integrate automatic iam creation in e2e test (#1158)
* integrate automatic iam creation in e2e test * fix typo * break long line comments * fix semvers * correct bracing
This commit is contained in:
parent
d89dd0ce18
commit
0ba810240f
7 changed files with 144 additions and 4 deletions
17
.github/actions/constellation_iam_destroy/action.yml
vendored
Normal file
17
.github/actions/constellation_iam_destroy/action.yml
vendored
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
name: Delete IAM configuration
|
||||
description: Delete previously created IAM configuration.
|
||||
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- name: Delete IAM configuration
|
||||
shell: bash
|
||||
run: |
|
||||
if [[ -f constellation-iam-terraform/terraform.tfstate ]]; then
|
||||
echo "IAM Terraform state file exists, deleting..."
|
||||
cd constellation-iam-terraform
|
||||
terraform destroy -auto-approve
|
||||
else
|
||||
echo "IAM Terraform state file does not exist, exiting..."
|
||||
exit 0
|
||||
fi
|
||||
Loading…
Add table
Add a link
Reference in a new issue