ci: deploy to sjdonado.de with dokku

This commit is contained in:
Juan Rodriguez
2023-04-19 17:07:33 +02:00
parent f74ec3af20
commit 7a095fb045
+10 -3
View File
@@ -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 }}