Skip to content
Merged
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
34 changes: 33 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,4 +102,36 @@ jobs:
EOF
# Test that ko can resolve the config for multiple architectures
KO_DOCKER_REPO=example.com ko resolve --platform=linux/amd64,linux/arm64 --push=false -R -f config 1>/dev/null
echo "Ko resolve succeeded for multi-arch build."
echo "Ko resolve succeeded for multi-arch build."

ci-summary:
name: CI summary
needs: [build, unit-tests, linting, check-licenses, ko-resolve]
runs-on: ubuntu-latest
if: always()
steps:
- name: Check CI results
run: |
results=(
"build=${{ needs.build.result }}"
"unit-tests=${{ needs.unit-tests.result }}"
"linting=${{ needs.linting.result }}"
"check-licenses=${{ needs.check-licenses.result }}"
"ko-resolve=${{ needs.ko-resolve.result }}"
)
failed=0
for r in "${results[@]}"; do
name="${r%%=*}"
result="${r#*=}"
echo "${name}: ${result}"
if [ "$result" != "success" ] && [ "$result" != "skipped" ]; then
failed=1
fi
done
if [ "$failed" -eq 1 ]; then
echo ""
echo "Some CI jobs failed or were cancelled"
exit 1
fi
echo ""
echo "All CI checks passed"
Loading