Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 13 additions & 1 deletion .github/workflows/build-staged-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,19 @@ jobs:
if: matrix.arch == 'amd64'
run: |
image="localhost/${{ matrix.name }}:${{ matrix.tag }}"
bcvk ephemeral run-ssh "${image}" -- systemctl is-system-running
bcvk ephemeral run-ssh "${image}" -- bash -c '
state=$(systemctl is-system-running)
if [ "$state" != "running" ]; then
echo "System state: $state"
echo "Failed units:"
systemctl list-units --state=failed --no-legend
systemctl list-units --state=failed --no-legend --plain | while read -r unit _rest; do
echo "--- Status of $unit ---"
systemctl status "$unit" --no-pager --full 2>&1 || true
done
exit 1
fi
'
- name: Push by digest
if: github.event_name != 'pull_request'
id: push
Expand Down
Loading