This commit is contained in:
commit
c18209418f
|
@ -5,7 +5,10 @@ jobs:
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Cloning repo
|
||||||
|
uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
|
||||||
- name: Get Repo Name
|
- name: Get Repo Name
|
||||||
id: repo_name
|
id: repo_name
|
||||||
|
@ -15,7 +18,7 @@ jobs:
|
||||||
id: branch_name
|
id: branch_name
|
||||||
run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})"
|
run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})"
|
||||||
|
|
||||||
- name: Push branch 'discours-dev' to staging.discours.io
|
- name: Push branch 'discours-dev' to staging
|
||||||
if: steps.branch_name.outputs.branch == 'discours-dev'
|
if: steps.branch_name.outputs.branch == 'discours-dev'
|
||||||
uses: dokku/github-action@master
|
uses: dokku/github-action@master
|
||||||
with:
|
with:
|
||||||
|
@ -23,7 +26,7 @@ jobs:
|
||||||
git_remote_url: "ssh://dokku@staging.discours.io:22/authorizer"
|
git_remote_url: "ssh://dokku@staging.discours.io:22/authorizer"
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: Push 'discours' to v2.discours.io
|
- name: Push branch 'discours' to v2.discours.io
|
||||||
if: steps.branch_name.outputs.branch == 'discours'
|
if: steps.branch_name.outputs.branch == 'discours'
|
||||||
uses: dokku/github-action@master
|
uses: dokku/github-action@master
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user