Landing/.forgejo/workflows/deploy.yml
Sergejs Kozinecs a3fc5bc3e2
All checks were successful
Build and Deploy Astro Landing / deploy (push) Successful in 12s
Fixing yml style
2026-07-29 19:36:02 +03:00

28 lines
680 B
YAML

name: Build and Deploy Astro Landing
on:
push:
branches:
- main
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy to VPS via SSH
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: |
set -e
cd /var/www/Landing
git fetch --all
git reset --hard origin/${{ github.ref_name }}
docker compose build --no-cache
docker compose up -d --force-recreate