diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..e4558d1 --- /dev/null +++ b/.dockerignore @@ -0,0 +1,4 @@ +node_modules +.astro +dist +.git diff --git a/.forgejo/workflows/deploy.yml b/.forgejo/workflows/deploy.yml new file mode 100644 index 0000000..0eabf0a --- /dev/null +++ b/.forgejo/workflows/deploy.yml @@ -0,0 +1,28 @@ +name: Build and Deploy Astro Landing + +on: + push: + branches: + - main + - master + +jobs: + deploy: + runs-on: ubuntu-latest # Метка вашего Forgejo Runner + steps: + - name: Deploy to VPS via SSH + uses: appleboy/ssh-action@v1.0.3 + with: + host: ${{ secrets.VPS_HOST }} + username: ${{ secrets.VPS_USER }} + key: ${{ secrets.VPS_SSH_KEY }} + port: 22 + script: | + # 1. Переходим в директорию лендинга + cd /var/www/Landing + + # 2. Подтягиваем свежие коммиты из Git + git pull origin main + + # 3. Пересобираем Docker-образ и перезапускаем контейнер + docker compose up -d --build diff --git a/.idea/workspace.xml b/.idea/workspace.xml index 404c6b6..8eb578d 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -8,149 +8,18 @@ - - + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + @@ -281,7 +151,7 @@ - + -