ci: deploy to sjdonado.de with dokku
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
name: Rubocop Linter
|
name: Deploy production to sjdonado.de
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
@@ -7,11 +7,18 @@ jobs:
|
|||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout Repo
|
- name: Checkout
|
||||||
uses: actions/checkout@master
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
- name: RuboCop Linter Action
|
- name: RuboCop Linter Action
|
||||||
uses: andrewmcodes/rubocop-linter-action@v3.3.0
|
uses: andrewmcodes/rubocop-linter-action@v3.3.0
|
||||||
with:
|
with:
|
||||||
action_config_path: .github/config/rubocop_linter_action.yml
|
action_config_path: .github/config/rubocop_linter_action.yml
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
- name: Push to dokku
|
||||||
|
uses: dokku/github-action@master
|
||||||
|
with:
|
||||||
|
git_remote_url: "ssh://dokku@ssh.sjdonado.de:22/url-shortener"
|
||||||
|
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
|
|||||||
Reference in New Issue
Block a user