mirror of
https://github.com/balena-io/open-balena.git
synced 2024-12-21 06:33:29 +00:00
Merge pull request #267 from balena-io/ab77/patch
capture termination instance reason
This commit is contained in:
commit
c1b7d2cf2d
18
.github/workflows/tests.yml
vendored
18
.github/workflows/tests.yml
vendored
@ -439,6 +439,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 }}'
|
||||
|
||||
if ! [[ -e "${HOME}/.ssh/id_rsa" ]]; then
|
||||
@ -486,6 +492,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
|
||||
@ -544,6 +556,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
|
||||
|
Loading…
Reference in New Issue
Block a user