Compare commits

..

4 commits

Author SHA1 Message Date
Sergejs Kozinecs
a3fc5bc3e2 Fixing yml style
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 12s
2026-07-29 19:36:02 +03:00
Sergejs Kozinecs
e210185342 Modified delpoy yml
Some checks failed
Build and Deploy Astro Landing / deploy (push) Failing after 1s
2026-07-29 19:34:41 +03:00
Sergejs Kozinecs
496619e8fe Change to direct github link
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 9s
2026-07-29 19:16:45 +03:00
Sergejs Kozinecs
a058c72537 Update version ssh action
Some checks failed
Build and Deploy Astro Landing / deploy (push) Failing after 6s
2026-07-29 19:15:20 +03:00

View file

@ -8,21 +8,21 @@ on:
jobs:
deploy:
runs-on: ubuntu-latest # Метка вашего Forgejo Runner
runs-on: ubuntu-latest
steps:
- name: Deploy to VPS via SSH
uses: appleboy/ssh-action@v1.0.3
uses: https://github.com/appleboy/ssh-action@v1.2.5
with:
host: ${{ secrets.VPS_HOST }}
username: ${{ secrets.VPS_USER }}
key: ${{ secrets.VPS_SSH_KEY }}
port: 22
script: |
# 1. Переходим в директорию лендинга
set -e
cd /var/www/Landing
# 2. Подтягиваем свежие коммиты из Git
git pull origin main
# 3. Пересобираем Docker-образ и перезапускаем контейнер
docker compose up -d --build
git fetch --all
git reset --hard origin/${{ github.ref_name }}
docker compose build --no-cache
docker compose up -d --force-recreate