This commit is contained in:
@@ -26,20 +26,11 @@ jobs:
|
|||||||
git_remote_url: 'ssh://dokku@v2.discours.io:22/discoursio-api'
|
git_remote_url: 'ssh://dokku@v2.discours.io:22/discoursio-api'
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Push to dokku for dev branch
|
- name: Push to v3.dscrs.site branch
|
||||||
if: github.ref == 'refs/heads/dev'
|
if: github.ref == 'refs/heads/dev'
|
||||||
uses: dokku/github-action@master
|
uses: dokku/github-action@master
|
||||||
with:
|
|
||||||
branch: 'main'
|
|
||||||
force: true
|
|
||||||
git_remote_url: 'ssh://dokku@v2.discours.io:22/core'
|
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
|
||||||
|
|
||||||
- name: Push to dokku for staging branch
|
|
||||||
if: github.ref == 'refs/heads/staging'
|
|
||||||
uses: dokku/github-action@master
|
|
||||||
with:
|
with:
|
||||||
branch: 'dev'
|
branch: 'dev'
|
||||||
git_remote_url: 'ssh://dokku@staging.discours.io:22/core'
|
git_remote_url: 'ssh://dokku@v3.dscrs.site:22/core'
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
git_push_flags: '--force'
|
git_push_flags: '--force'
|
||||||
|
Reference in New Issue
Block a user