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
48 changes: 44 additions & 4 deletions .github/workflows/docker_images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,17 @@ jobs:
env:
DIGEST: ${{ steps.docker_build.outputs.digest }}
TAGS: ${{ steps.metadata.outputs.tags }}
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
# Retry to ride out transient OIDC/Fulcio network failures (e.g. a TLS
# handshake timeout that expires the OIDC token). Each attempt fetches a
# fresh token, avoiding "expired_token" from cosign's in-process retries.
run: |
n=0
until cosign sign --yes --recursive "${TAGS}@${DIGEST}"; do
n=$((n+1))
[ $n -ge 5 ] && { echo "::error::cosign sign failed after $n attempts"; exit 1; }
echo "cosign sign attempt $n failed; retrying in $((15*n))s..."
sleep $((15*n))
done

- name: Cache cuda-quantum image
if: steps.build_info.outputs.tar_cache && steps.build_info.outputs.tar_archive
Expand Down Expand Up @@ -417,7 +427,17 @@ jobs:
env:
DIGEST: ${{ steps.docker_build.outputs.digest }}
TAGS: ${{ steps.metadata.outputs.tags }}
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
# Retry to ride out transient OIDC/Fulcio network failures (e.g. a TLS
# handshake timeout that expires the OIDC token). Each attempt fetches a
# fresh token, avoiding "expired_token" from cosign's in-process retries.
run: |
n=0
until cosign sign --yes --recursive "${TAGS}@${DIGEST}"; do
n=$((n+1))
[ $n -ge 5 ] && { echo "::error::cosign sign failed after $n attempts"; exit 1; }
echo "cosign sign attempt $n failed; retrying in $((15*n))s..."
sleep $((15*n))
done

- name: Cache cuda-quantum-dev image
if: steps.prereqs.outputs.tar_cache && steps.prereqs.outputs.tar_archive
Expand Down Expand Up @@ -677,7 +697,17 @@ jobs:
env:
DIGEST: ${{ steps.release_build.outputs.digest }}
TAGS: ${{ steps.cudaqdev_metadata.outputs.tags }}
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
# Retry to ride out transient OIDC/Fulcio network failures (e.g. a TLS
# handshake timeout that expires the OIDC token). Each attempt fetches a
# fresh token, avoiding "expired_token" from cosign's in-process retries.
run: |
n=0
until cosign sign --yes --recursive "${TAGS}@${DIGEST}"; do
n=$((n+1))
[ $n -ge 5 ] && { echo "::error::cosign sign failed after $n attempts"; exit 1; }
echo "cosign sign attempt $n failed; retrying in $((15*n))s..."
sleep $((15*n))
done

- name: Log in to NGC
if: needs.metadata.outputs.push_to_ngc == 'true'
Expand Down Expand Up @@ -745,7 +775,17 @@ jobs:
env:
DIGEST: ${{ steps.cudaq_build.outputs.digest }}
TAGS: ${{ steps.cudaq_metadata.outputs.tags }}
run: cosign sign --yes --recursive "${TAGS}@${DIGEST}"
# Retry to ride out transient OIDC/Fulcio network failures (e.g. a TLS
# handshake timeout that expires the OIDC token). Each attempt fetches a
# fresh token, avoiding "expired_token" from cosign's in-process retries.
run: |
n=0
until cosign sign --yes --recursive "${TAGS}@${DIGEST}"; do
n=$((n+1))
[ $n -ge 5 ] && { echo "::error::cosign sign failed after $n attempts"; exit 1; }
echo "cosign sign attempt $n failed; retrying in $((15*n))s..."
sleep $((15*n))
done

- name: Install NGC CLI
if: inputs.environment && needs.metadata.outputs.push_to_ngc == 'true'
Expand Down
Loading