Skip to content
Merged
Show file tree
Hide file tree
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
fixes:
- |
Fixes CI multiarch manifest creation by setting ``pipefail`` in the
manifest script. Failures from ``docker manifest create`` or
``docker manifest push`` now fail the job even when piped to ``tee``.
7 changes: 4 additions & 3 deletions tools/multiarch-manifests.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
#!/usr/bin/env bash
# Script used by the Image build workflow to build & push multiarch manifests.

set -ex
set -o errexit
set -o xtrace
set -o pipefail

mkdir -p logs
images=$(cat all-pushed-images.txt | sort | uniq)

# Filter out Ubuntu and Rocky Bifrost images
manifest_images=$(echo "$images" \
| grep -E '.*-(amd64|aarch64)$' \
| sed -E 's/-(amd64|aarch64)$//' \
| sed -nE 's/-(amd64|aarch64)$//p' \
| sort | uniq)

if [ -z "$manifest_images" ]; then
Expand Down
Loading