In case the job fails completely, resources might leak. This patch together with the one introducing predictable names for CI artifacts will make sure we wipe all resources after each CI run.
7 lines
232 B
Bash
Executable file
7 lines
232 B
Bash
Executable file
#!/bin/bash
|
|
set -euo pipefail
|
|
|
|
CLEANER_CMD="env $(cat "$AZURE_CREDS") CHANGE_ID=$CHANGE_ID BUILD_ID=$BUILD_ID DISTRO_CODE=$DISTRO_CODE /usr/libexec/osbuild-composer/cloud-cleaner"
|
|
|
|
echo "🧹 Running the cloud cleaner"
|
|
$CLEANER_CMD
|