mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-08-09 07:22:40 -04:00
fixed issues with download format and allow stderr output
This commit is contained in:
parent
7b95a54b92
commit
a9a96054ee
1 changed files with 8 additions and 14 deletions
|
@ -8,22 +8,22 @@ function get_e2e_test_ids_on_date {
|
||||||
|
|
||||||
# download_tfstate_artifact downloads all artifacts matching the pattern terraform-state-* from a given workflow ID.
|
# download_tfstate_artifact downloads all artifacts matching the pattern terraform-state-* from a given workflow ID.
|
||||||
function download_tfstate_artifact {
|
function download_tfstate_artifact {
|
||||||
gh run download "$1" -p "terraform-state-*" -R edgelesssys/constellation &>/dev/null
|
gh run download "$1" -p "terraform-state-*" -R edgelesssys/constellation > /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
# delete_resources runs terraform destroy on the constellation-terraform subfolder of a given folder.
|
# delete_resources runs terraform destroy on the constellation-terraform subfolder of a given folder.
|
||||||
function delete_resources {
|
function delete_resources {
|
||||||
cd $1/constellation-terraform
|
cd $1/constellation-terraform
|
||||||
terraform init # first, install plugins
|
terraform init > /dev/null # first, install plugins
|
||||||
terraform destroy -auto-approve
|
terraform destroy -auto-approve > /dev/null
|
||||||
cd ../../
|
cd ../../
|
||||||
}
|
}
|
||||||
|
|
||||||
# delete_iam_config runs terraform destroy on the constellation-iam-terraform subfolder of a given folder.
|
# delete_iam_config runs terraform destroy on the constellation-iam-terraform subfolder of a given folder.
|
||||||
function delete_iam_config {
|
function delete_iam_config {
|
||||||
cd $1/constellation-iam-terraform
|
cd $1/constellation-iam-terraform
|
||||||
terraform init # first, install plugins
|
terraform init > /dev/null # first, install plugins
|
||||||
terraform destroy -auto-approve
|
terraform destroy -auto-approve > /dev/null
|
||||||
cd ../../
|
cd ../../
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -62,17 +62,11 @@ for id in ${database_ids[*]}; do
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "[*] extracting artifacts"
|
echo "[*] extracting artifacts"
|
||||||
for artifact in ./terraform-state-*.zip; do
|
for directory in ./terraform-state-*; do
|
||||||
echo " extracting $artifact"
|
echo " extracting $directory"
|
||||||
|
|
||||||
mkdir ${artifact%.*}
|
|
||||||
|
|
||||||
# extract and decrypt the artifact
|
# extract and decrypt the artifact
|
||||||
unzip "$artifact"
|
unzip -d ${directory} -P "$artifact_pwd" $directory/archive.zip > /dev/null
|
||||||
unzip -d ${artifact%.*} -P "$artifact_pwd" archive.zip
|
|
||||||
|
|
||||||
rm "$artifact"
|
|
||||||
rm archive.zip
|
|
||||||
done
|
done
|
||||||
|
|
||||||
echo "[*] deleting resources"
|
echo "[*] deleting resources"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue