Remove inline docker login from deploy script
All checks were successful
CI/CD Pipeline - Apartment API / Run Tests (push) Successful in 9m41s
CI/CD Pipeline - Apartment API / Build & Push Image (push) Successful in 24s
CI/CD Pipeline - Apartment API / Deploy to Production (push) Successful in 14s

Use pre-configured Docker credentials on server instead of passing
Harbor credentials through SSH script, avoiding shell interpolation
issues with special characters in robot account username.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-22 16:43:58 -07:00
parent 62daabc1c3
commit b584dc94d4

View File

@ -122,10 +122,7 @@ jobs:
# Navigate to deployment directory
cd ${{ secrets.DEPLOY_PATH }}
# Log in to Harbor (credentials are masked by Gitea Actions)
echo "${{ secrets.HARBOR_PASSWORD }}" | docker login ${{ secrets.HARBOR_REGISTRY }} -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
# Pull the specific image
# Pull the specific image (using pre-configured Docker credentials)
docker pull "$IMAGE"
# Update and restart with new image