Retry login operation in docker-tag-push.yml (#2286)

This commit is contained in:
Ayaz Salikhov
2025-04-13 18:47:43 +01:00
committed by GitHub
parent 81bf722fea
commit cbe74ff1da

View File

@@ -54,11 +54,15 @@ jobs:
- name: Login to Registry 🔐 - name: Login to Registry 🔐
if: env.PUSH_TO_REGISTRY == 'true' if: env.PUSH_TO_REGISTRY == 'true'
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0 run: |
with: docker login ${{ env.REGISTRY }} \
registry: quay.io --username ${{ secrets.REGISTRY_USERNAME }} \
username: ${{ secrets.REGISTRY_USERNAME }} --password ${{ secrets.REGISTRY_TOKEN }} || \
password: ${{ secrets.REGISTRY_TOKEN }} docker login ${{ env.REGISTRY }} \
--username ${{ secrets.REGISTRY_USERNAME }} \
--password ${{ secrets.REGISTRY_TOKEN }}
shell: bash
id: login
- name: Push single platform images to Registry 📤 - name: Push single platform images to Registry 📤
if: env.PUSH_TO_REGISTRY == 'true' if: env.PUSH_TO_REGISTRY == 'true'
@@ -74,3 +78,9 @@ jobs:
--variant ${{ inputs.variant }} \ --variant ${{ inputs.variant }} \
--tags-dir /tmp/jupyter/tags/ --tags-dir /tmp/jupyter/tags/
shell: bash shell: bash
- name: Logout from Registry 🔐
if: always() && env.PUSH_TO_REGISTRY == 'true' && steps.login.outcome == 'success'
run: |
docker logout ${{ env.REGISTRY }}
shell: bash