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:
|
||||
push:
|
||||
branches:
|
||||
@@ -7,11 +7,18 @@ jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Repo
|
||||
uses: actions/checkout@master
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: RuboCop Linter Action
|
||||
uses: andrewmcodes/rubocop-linter-action@v3.3.0
|
||||
with:
|
||||
action_config_path: .github/config/rubocop_linter_action.yml
|
||||
env:
|
||||
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