Robust registry operations: adjust timelimit and use retries (#2270)

This commit is contained in:
Ayaz Salikhov
2025-03-27 01:41:49 +00:00
committed by GitHub
parent ecaa90c704
commit 5cfcdbd416
2 changed files with 14 additions and 8 deletions

View File

@@ -18,7 +18,7 @@ on:
timeout-minutes:
description: Timeout in minutes
type: number
default: 25
default: 10
secrets:
REGISTRY_USERNAME:
required: true
@@ -67,9 +67,13 @@ jobs:
- name: Merge tags for the images 🔀
if: env.PUSH_TO_REGISTRY == 'true'
run: >
python3 -m tagging.apps.merge_tags
--image ${{ inputs.image }}
--variant ${{ inputs.variant }}
--tags-dir /tmp/jupyter/tags/
run: |
python3 -m tagging.apps.merge_tags \
--image ${{ inputs.image }} \
--variant ${{ inputs.variant }} \
--tags-dir /tmp/jupyter/tags/ || \
python3 -m tagging.apps.merge_tags \
--image ${{ inputs.image }} \
--variant ${{ inputs.variant }} \
--tags-dir /tmp/jupyter/tags/
shell: bash

View File

@@ -22,7 +22,7 @@ on:
type: string
timeout-minutes:
description: Timeout in minutes
default: 25
default: 10
type: number
secrets:
REGISTRY_USERNAME:
@@ -75,5 +75,7 @@ jobs:
- name: Push Images to Registry 📤
if: env.PUSH_TO_REGISTRY == 'true'
run: docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }}
run: |
docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }} || \
docker push --all-tags ${{ env.REGISTRY }}/${{ env.OWNER }}/${{ inputs.image }}
shell: bash