parent
254e71d658
commit
a5e6bbd724
|
@ -1,31 +1,30 @@
|
||||||
name: 'deploy'
|
name: 'deploy'
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
- dev
|
|
||||||
|
jobs:
|
||||||
jobs:
|
deploy:
|
||||||
deploy:
|
runs-on: ubuntu-latest
|
||||||
runs-on: ubuntu-latest
|
steps:
|
||||||
steps:
|
- name: Cloning repo
|
||||||
- name: Cloning repo
|
uses: actions/checkout@v2
|
||||||
uses: actions/checkout@v2
|
with:
|
||||||
with:
|
fetch-depth: 0
|
||||||
fetch-depth: 0
|
|
||||||
|
- name: Get Repo Name
|
||||||
- name: Get Repo Name
|
id: repo_name
|
||||||
id: repo_name
|
run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})"
|
||||||
run: echo "::set-output name=repo::$(echo ${GITHUB_REPOSITORY##*/})"
|
|
||||||
|
- name: Get Branch Name
|
||||||
- name: Get Branch Name
|
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 dokku
|
||||||
- name: Push to dokku
|
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/${{ steps.repo_name.outputs.repo }}'
|
||||||
git_remote_url: 'ssh://dokku@staging.discours.io:22/${{ steps.repo_name.outputs.repo }}'
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
git_push_flags: '--force'
|
||||||
git_push_flags: '--force'
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user