Files
my_shop/.gitea/workflows/deploy.yaml
ack 5cf216e110
Some checks failed
Auto-Deploy-Shop / build-and-deploy (push) Has been cancelled
add runner
2026-01-21 05:37:21 +03:00

22 lines
570 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

name: Auto-Deploy-Shop
on:
push:
branches: [ master ]
jobs:
build-and-deploy:
runs-on: ubuntu-latest # Убедись, что у тебя настроен Runner в Gitea
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Deploy via SSH
uses: appleboy/ssh-action@master
with:
host: 192.168.1.57
username: ack
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd ~/projects/my_shop
git pull origin master
docker compose up -d --build