feat: dev branch with deploying on CI staging
All checks were successful
deploy / deploy (push) Successful in 57s

This commit is contained in:
Stepan Vladovskiy 2024-03-18 00:36:47 -03:00
parent 106f1bfbde
commit a32ea8f3a0

View File

@ -18,9 +18,18 @@ jobs:
id: branch_name
run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})"
- name: Push to dokku
- name: Push to dokku for main branch
if: steps.branch_name.outputs.branch == 'main'
uses: dokku/github-action@master
with:
branch: 'main'
git_remote_url: 'ssh://dokku@v2.discours.io:22/inbox'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
- name: Push to dokku for staging branch
if: steps.branch_name.outputs.branch == 'dev'
uses: dokku/github-action@master
with:
branch: 'main'
git_remote_url: 'ssh://dokku@staging.discours.io:22/inbox'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}