Add git pull to deployment to sync docker-compose.yml
This commit is contained in:
4
.github/workflows/deploy.yml
vendored
4
.github/workflows/deploy.yml
vendored
@ -124,6 +124,10 @@ jobs:
|
||||
# Navigate to deployment directory
|
||||
cd ${{ secrets.DEPLOY_PATH }}
|
||||
|
||||
# Pull latest docker-compose.yml and other config
|
||||
git fetch origin main
|
||||
git reset --hard origin/main
|
||||
|
||||
# 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user