deploy-fix
This commit is contained in:
parent
dae67d216e
commit
5fcfb1800e
|
@ -14,22 +14,26 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
|
|
||||||
deploy:
|
deploy:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: test
|
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: Push to dokku
|
- name: Get Branch Name
|
||||||
uses: dokku/github-action@master
|
id: branch_name
|
||||||
with:
|
run: echo "::set-output name=branch::$(echo ${GITHUB_REF##*/})"
|
||||||
branch: 'main'
|
|
||||||
git_remote_url: 'ssh://dokku@v2.discours.io:22/${{ steps.repo_name.outputs.repo }}'
|
- name: Push to dokku
|
||||||
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
uses: dokku/github-action@master
|
||||||
|
with:
|
||||||
|
branch: 'main'
|
||||||
|
git_remote_url: 'ssh://dokku@v2.discours.io:22/${{ steps.repo_name.outputs.repo }}'
|
||||||
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user