debug: simplify main.yml for actions
Some checks failed
Deploy to discoursio-api / deploy (push) Failing after 3s
Some checks failed
Deploy to discoursio-api / deploy (push) Failing after 3s
This commit is contained in:
parent
9d8bd629ab
commit
a8018a0b2f
|
@ -1,6 +1,8 @@
|
||||||
name: 'deploy'
|
name: 'Deploy to discoursio-api'
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
deploy:
|
deploy:
|
||||||
|
@ -11,15 +13,11 @@ jobs:
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get Branch Name
|
- name: Push to discoursio-api
|
||||||
id: branch_name
|
|
||||||
run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})"
|
|
||||||
|
|
||||||
- name: Push to dokku
|
|
||||||
uses: dokku/github-action@master
|
uses: dokku/github-action@master
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
|
ssh-private-key: ${{ secrets.DOKKU_SSH_PRIVATE_KEY }}
|
||||||
ssh-host: staging.discours.io
|
ssh-host: staging.discours.io
|
||||||
ssh-user: dokku
|
ssh-user: dokku
|
||||||
app-name: ${{ steps.branch_name.outputs.branch == 'main' ? 'discoursio-api' : 'core' }}
|
app-name: discoursio-api
|
||||||
git-remote-url: ${{ steps.branch_name.outputs.branch == 'main' ? 'ssh://dokku@staging.discours.io:22/discoursio-api' : 'ssh://dokku@staging.discours.io:22/core' }}
|
git-remote-url: ssh://dokku@staging.discours.io:22/discoursio-api
|
||||||
|
|
Loading…
Reference in New Issue
Block a user