mirror of
https://github.com/balena-io/open-balena.git
synced 2024-12-18 21:27:52 +00:00
show EC2 instance termination status
change-type: patch
This commit is contained in:
parent
563bababb9
commit
538bcfe959
9
.github/workflows/tests.yml
vendored
9
.github/workflows/tests.yml
vendored
@ -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
|
||||
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user