ci: add deploy script
All checks were successful
/ Build (push) Successful in 1m36s

This commit is contained in:
log101 2024-05-30 16:49:22 +03:00
parent b13e73e726
commit 30b38e7247

View File

@ -0,0 +1,18 @@
run-name: ${{ gitea.actor }}, deploy with ssh
on: [push]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Rebuild docker compose
uses: appleboy/ssh-action@v1.0.3
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }}
key: ${{ secrets.KEY }}
script: |
cd /home/log101/prod/log101.dev-services
git pull
docker compose up -d --build