fix: add retry for Harbor login in CI
CI/CD / build-and-push (push) Successful in 1m30s Details

This commit is contained in:
Cloud User 2026-03-16 13:41:58 +09:00
parent cc8b58d5dd
commit aad5645c2a
1 changed files with 5 additions and 1 deletions

View File

@ -30,7 +30,11 @@ jobs:
- name: Login to Harbor
run: |
echo '${{ secrets.REGISTRY_PASSWORD }}' | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USER }} --password-stdin
for i in 1 2 3; do
echo '${{ secrets.REGISTRY_PASSWORD }}' | docker login ${{ secrets.REGISTRY_URL }} -u ${{ secrets.REGISTRY_USER }} --password-stdin && break
echo "Retry $i..."
sleep 5
done
- name: Build and push Docker image
run: |