mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-07 10:04:03 +00:00
Robust registry operations: adjust timelimit and use retries (#2270)
This commit is contained in:
16
.github/workflows/docker-merge-tags.yml
vendored
16
.github/workflows/docker-merge-tags.yml
vendored
@@ -18,7 +18,7 @@ on:
|
|||||||
timeout-minutes:
|
timeout-minutes:
|
||||||
description: Timeout in minutes
|
description: Timeout in minutes
|
||||||
type: number
|
type: number
|
||||||
default: 25
|
default: 10
|
||||||
secrets:
|
secrets:
|
||||||
REGISTRY_USERNAME:
|
REGISTRY_USERNAME:
|
||||||
required: true
|
required: true
|
||||||
@@ -67,9 +67,13 @@ jobs:
|
|||||||
|
|
||||||
- name: Merge tags for the images 🔀
|
- name: Merge tags for the images 🔀
|
||||||
if: env.PUSH_TO_REGISTRY == 'true'
|
if: env.PUSH_TO_REGISTRY == 'true'
|
||||||
run: >
|
run: |
|
||||||
python3 -m tagging.apps.merge_tags
|
python3 -m tagging.apps.merge_tags \
|
||||||
--image ${{ inputs.image }}
|
--image ${{ inputs.image }} \
|
||||||
--variant ${{ inputs.variant }}
|
--variant ${{ inputs.variant }} \
|
||||||
--tags-dir /tmp/jupyter/tags/
|
--tags-dir /tmp/jupyter/tags/ || \
|
||||||
|
python3 -m tagging.apps.merge_tags \
|
||||||
|
--image ${{ inputs.image }} \
|
||||||
|
--variant ${{ inputs.variant }} \
|
||||||
|
--tags-dir /tmp/jupyter/tags/
|
||||||
shell: bash
|
shell: bash
|
||||||
|
6
.github/workflows/docker-tag-push.yml
vendored
6
.github/workflows/docker-tag-push.yml
vendored
@@ -22,7 +22,7 @@ on:
|
|||||||
type: string
|
type: string
|
||||||
timeout-minutes:
|
timeout-minutes:
|
||||||
description: Timeout in minutes
|
description: Timeout in minutes
|
||||||
default: 25
|
default: 10
|
||||||
type: number
|
type: number
|
||||||
secrets:
|
secrets:
|
||||||
REGISTRY_USERNAME:
|
REGISTRY_USERNAME:
|
||||||
@@ -75,5 +75,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Push Images to Registry 📤
|
- name: Push Images to Registry 📤
|
||||||
if: env.PUSH_TO_REGISTRY == 'true'
|
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
|
shell: bash
|
||||||
|
Reference in New Issue
Block a user