Fixing yml style
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 12s
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 12s
This commit is contained in:
parent
e210185342
commit
a3fc5bc3e2
1 changed files with 2 additions and 4 deletions
|
|
@ -8,7 +8,7 @@ on:
|
|||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest # Метка вашего Forgejo Runner
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Deploy to VPS via SSH
|
||||
uses: https://github.com/appleboy/ssh-action@v1.2.5
|
||||
|
|
@ -21,10 +21,8 @@ jobs:
|
|||
set -e
|
||||
cd /var/www/Landing
|
||||
|
||||
# 1. Сбрасываем локальные изменения и подтягиваем свежий код из ветки
|
||||
git fetch --all
|
||||
git reset --hard origin/${{ gitea.ref_name || github.ref_name }}
|
||||
git reset --hard origin/${{ github.ref_name }}
|
||||
|
||||
# 2. Принудительно собираем новый образ без кэша и пересоздаём контейнер
|
||||
docker compose build --no-cache
|
||||
docker compose up -d --force-recreate
|
||||
|
|
|
|||
Loading…
Reference in a new issue