mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-15 22:12:57 +00:00
Retry login operation in docker-tag-push.yml (#2286)
This commit is contained in:
20
.github/workflows/docker-tag-push.yml
vendored
20
.github/workflows/docker-tag-push.yml
vendored
@@ -54,11 +54,15 @@ jobs:
|
||||
|
||||
- name: Login to Registry 🔐
|
||||
if: env.PUSH_TO_REGISTRY == 'true'
|
||||
uses: docker/login-action@74a5d142397b4f367a81961eba4e8cd7edddf772 # v3.4.0
|
||||
with:
|
||||
registry: quay.io
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_TOKEN }}
|
||||
run: |
|
||||
docker login ${{ env.REGISTRY }} \
|
||||
--username ${{ secrets.REGISTRY_USERNAME }} \
|
||||
--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 📤
|
||||
if: env.PUSH_TO_REGISTRY == 'true'
|
||||
@@ -74,3 +78,9 @@ jobs:
|
||||
--variant ${{ inputs.variant }} \
|
||||
--tags-dir /tmp/jupyter/tags/
|
||||
shell: bash
|
||||
|
||||
- name: Logout from Registry 🔐
|
||||
if: always() && env.PUSH_TO_REGISTRY == 'true' && steps.login.outcome == 'success'
|
||||
run: |
|
||||
docker logout ${{ env.REGISTRY }}
|
||||
shell: bash
|
||||
|
Reference in New Issue
Block a user