parent
04a8e292c0
commit
c8ba8c1453
|
@ -1,4 +1,4 @@
|
||||||
name: 'deploy'
|
name: "deploy"
|
||||||
on: [push]
|
on: [push]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
@ -15,18 +15,18 @@ 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 to staging
|
- name: Push branch 'discours-dev' to staging.discours.io
|
||||||
if: steps.branch_name.outputs.branch == 'discours'
|
if: steps.branch_name.outputs.branch == 'discours-dev'
|
||||||
uses: dokku/github-action@master
|
uses: dokku/github-action@master
|
||||||
with:
|
with:
|
||||||
branch: 'main'
|
branch: "main"
|
||||||
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 to v2
|
- name: Push '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:
|
||||||
branch: 'main'
|
branch: "main"
|
||||||
git_remote_url: 'ssh://dokku@v2.discours.io:22/authorizer'
|
git_remote_url: "ssh://dokku@v2.discours.io:22/authorizer"
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user