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: 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 }}