feat: gitea workflow with Uploader check is runing, plus in server.py is checker too
This commit is contained in:
@@ -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'
|
||||
|
Reference in New Issue
Block a user