Remove inline docker login from deploy script
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:
5
.github/workflows/deploy.yml
vendored
5
.github/workflows/deploy.yml
vendored
@ -122,10 +122,7 @@ jobs:
|
|||||||
# Navigate to deployment directory
|
# Navigate to deployment directory
|
||||||
cd ${{ secrets.DEPLOY_PATH }}
|
cd ${{ secrets.DEPLOY_PATH }}
|
||||||
|
|
||||||
# Log in to Harbor (credentials are masked by Gitea Actions)
|
# Pull the specific image (using pre-configured Docker credentials)
|
||||||
echo "${{ secrets.HARBOR_PASSWORD }}" | docker login ${{ secrets.HARBOR_REGISTRY }} -u ${{ secrets.HARBOR_USERNAME }} --password-stdin
|
|
||||||
|
|
||||||
# Pull the specific image
|
|
||||||
docker pull "$IMAGE"
|
docker pull "$IMAGE"
|
||||||
|
|
||||||
# Update and restart with new image
|
# Update and restart with new image
|
||||||
|
|||||||
Reference in New Issue
Block a user