add ci depoy satge

This commit is contained in:
2026-07-10 21:47:25 +03:00
parent 20a1c062e3
commit 6627a62853
+19 -1
View File
@@ -10,7 +10,7 @@ env: # Переменные окружения
PLATFORMS: linux/amd64,linux/arm64
jobs: # Список выполняемых джоб
check-changes: # джоба проверки изменений в файлах
need-deploy: # джоба проверки изменений в файлах
runs-on: ubuntu-latest
outputs:
src_changed: ${{ steps.filter.outputs.src }}
@@ -54,3 +54,21 @@ jobs: # Список выполняемых джоб
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}
cache-from: type=gha
cache-to: type=gha,mode=max
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Deploy over SSH
uses: appleboy/ssh-action@v0.1.6
with:
host: ${{ secrets.HOST }}
username: ${{ secrets.USER }}
key: ${{ secrets.KEY }}
script: |
cd /home/ubadmin/mkdocs
git pull origin main
docker compose down
docker compose up -d --build