Skip to content

Commit

Permalink
show EC2 instance termination status
Browse files Browse the repository at this point in the history
change-type: patch
  • Loading branch information
ab77 committed Jun 25, 2024
1 parent 563baba commit 538bcfe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -580,6 +580,12 @@ jobs:
source src/balena-tests/functions
function cleanup() {
aws ec2 describe-instances --instance-ids ${{ steps.balena-sut.outputs.instance_id }} \
| jq -r .Reservations[].Instances[].StateReason
}
trap 'cleanup' EXIT
with_backoff balena login --token '${{ secrets.BALENA_API_KEY }}'
balena whoami && ssh-add -l
Expand Down Expand Up @@ -836,6 +842,9 @@ jobs:
aws logs put-retention-policy \
--log-group-name open-balena-tests \
--retention-in-days "${{ env.AWS_LOGS_RETENTION }}" || true
aws ec2 describe-instances --instance-ids ${{ steps.ubuntu-sut.outputs.instance_id }} \
| jq -r .Reservations[].Instances[].StateReason
}
trap 'log_output' EXIT
Expand Down

0 comments on commit 538bcfe

Please sign in to comment.