This commit is contained in:
2026-03-21 17:33:39 +03:30
parent 451a814347
commit 1f08a80c72
5 changed files with 145 additions and 188 deletions
+15 -2
View File
@@ -86,6 +86,19 @@ jobs:
run: |
npm run build --if-present
- name: Run Lint
- name: Setup SSH key
run: |
npm run lint --if-present
mkdir -p ~/.ssh
echo "${{ secrets.SSH_PRIVATE_KEY }}" > ~/.ssh/id_ed25519
chmod 600 ~/.ssh/id_ed25519
ssh-keyscan -p ${{ secrets.SERVER_SSH_PORT }} -H ${{ secrets.SERVER_HOST }} >> ~/.ssh/known_hosts
- name: Deploy
run: |
ssh ${{ secrets.SERVER_USER }}@${{ secrets.SERVER_HOST }} -p ${{ secrets.SERVER_SSH_PORT }} << 'EOF'
cd application/Frontend
git pull origin production
docker compose -f docker-compose-prod.yml down
docker compose -f docker-compose-prod.yml up -d --build
EOF