feat: gitea workflow with Uploader check is runing, plus in server.py is checker too

This commit is contained in:
Stepan Vladovskiy
2024-05-05 14:44:02 -03:00
parent 0d87d3d889
commit 89021ea018
5 changed files with 41 additions and 45 deletions

View File

@@ -25,8 +25,18 @@ jobs:
git_remote_url: 'ssh://dokku@v2.discours.io:22/discoursio-api'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Check UPLOADER is running
id: check_container
uses: appleboy/ssh-action@master
with:
host: staging.discours.io
username: dokku
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: docker ps | grep 'uploader'
continue-on-error: true
- name: Push to dokku for dev branch
if: github.ref == 'refs/heads/dev'
if: github.ref == 'refs/heads/dev' && steps.check_container.outcome == 'success'
uses: dokku/github-action@master
with:
branch: 'dev'