trying to fix manifest push
Some checks failed
CI / Rustfmt (push) Successful in 22s
CI / Cargo Audit & Deny (push) Successful in 35s
CI / Security Blocking Checks (push) Successful in 9s
CI / Web Blocking Checks (push) Successful in 51s
CI / Web Advisory Checks (push) Successful in 37s
Publish Images / Resolve Publish Metadata (push) Successful in 1s
CI / Clippy (push) Successful in 2m9s
CI / Security Advisory Checks (push) Successful in 1m25s
Publish Images / Publish web (amd64) (push) Successful in 52s
Publish Images / Publish web (arm64) (push) Successful in 3m27s
CI / Tests (push) Successful in 8m48s
Publish Images / Build Rust Bundles (amd64) (push) Successful in 12m50s
Publish Images / Build Rust Bundles (arm64) (push) Successful in 12m29s
Publish Images / Publish agent (amd64) (push) Successful in 26s
Publish Images / Publish api (amd64) (push) Successful in 37s
Publish Images / Publish executor (amd64) (push) Successful in 40s
Publish Images / Publish agent (arm64) (push) Successful in 1m2s
Publish Images / Publish notifier (amd64) (push) Successful in 38s
Publish Images / Publish executor (arm64) (push) Successful in 1m57s
Publish Images / Publish api (arm64) (push) Successful in 1m58s
Publish Images / Publish notifier (arm64) (push) Successful in 2m6s
Publish Images / Publish manifest attune/agent (push) Successful in 12s
Publish Images / Publish manifest attune/api (push) Successful in 11s
Publish Images / Publish manifest attune/notifier (push) Successful in 13s
Publish Images / Publish manifest attune/executor (push) Successful in 16s
Publish Images / Publish manifest attune/web (push) Failing after 37s

This commit is contained in:
2026-03-25 17:29:27 -05:00
parent c11bc1a2bf
commit ba83958337

View File

@@ -546,6 +546,29 @@ jobs:
run: |
set -euo pipefail
run_with_retries() {
local max_attempts="$1"
local delay_seconds="$2"
shift 2
local attempt=1
while true; do
if "$@"; then
return 0
fi
if [ "$attempt" -ge "$max_attempts" ]; then
echo "Command failed after ${attempt} attempts: $*"
return 1
fi
echo "Command failed on attempt ${attempt}/${max_attempts}: $*"
echo "Retrying in ${delay_seconds}s..."
sleep "$delay_seconds"
attempt=$((attempt + 1))
done
}
image_ref="${{ needs.metadata.outputs.registry }}/${{ needs.metadata.outputs.namespace }}/${{ matrix.image.repository }}:${{ needs.metadata.outputs.image_tag }}-${{ matrix.arch }}"
build_cmd=(
@@ -561,7 +584,7 @@ jobs:
build_cmd+=(--tag "$image_ref" --push)
fi
"${build_cmd[@]}"
run_with_retries 3 5 "${build_cmd[@]}"
- name: Link container package to repository
shell: bash
@@ -663,6 +686,29 @@ jobs:
run: |
set -euo pipefail
run_with_retries() {
local max_attempts="$1"
local delay_seconds="$2"
shift 2
local attempt=1
while true; do
if "$@"; then
return 0
fi
if [ "$attempt" -ge "$max_attempts" ]; then
echo "Command failed after ${attempt} attempts: $*"
return 1
fi
echo "Command failed on attempt ${attempt}/${max_attempts}: $*"
echo "Retrying in ${delay_seconds}s..."
sleep "$delay_seconds"
attempt=$((attempt + 1))
done
}
image_ref="${{ needs.metadata.outputs.registry }}/${{ needs.metadata.outputs.namespace }}/attune/web:${{ needs.metadata.outputs.image_tag }}-${{ matrix.arch }}"
build_cmd=(
@@ -678,7 +724,7 @@ jobs:
build_cmd+=(--tag "$image_ref" --push)
fi
"${build_cmd[@]}"
run_with_retries 3 5 "${build_cmd[@]}"
- name: Link web container package to repository
shell: bash
@@ -775,6 +821,29 @@ jobs:
run: |
set -euo pipefail
run_with_retries() {
local max_attempts="$1"
local delay_seconds="$2"
shift 2
local attempt=1
while true; do
if "$@"; then
return 0
fi
if [ "$attempt" -ge "$max_attempts" ]; then
echo "Command failed after ${attempt} attempts: $*"
return 1
fi
echo "Command failed on attempt ${attempt}/${max_attempts}: $*"
echo "Retrying in ${delay_seconds}s..."
sleep "$delay_seconds"
attempt=$((attempt + 1))
done
}
image_base="${{ needs.metadata.outputs.registry }}/${{ needs.metadata.outputs.namespace }}/${{ matrix.repository }}"
IFS=',' read -ra tags <<< "${{ needs.metadata.outputs.image_tags }}"
@@ -783,6 +852,7 @@ jobs:
amd64_ref="${image_base}:${{ needs.metadata.outputs.image_tag }}-amd64"
arm64_ref="${image_base}:${{ needs.metadata.outputs.image_tag }}-arm64"
run_with_retries 3 5 \
docker buildx imagetools create \
--tag "$manifest_ref" \
"$amd64_ref" \