Skip to content

Instantly share code, notes, and snippets.

@huksley
Created September 18, 2023 06:53
Show Gist options
  • Save huksley/e4f2470317497f63bb580b7b1a70d1df to your computer and use it in GitHub Desktop.
Save huksley/e4f2470317497f63bb580b7b1a70d1df to your computer and use it in GitHub Desktop.
Github Actions to deploy to privately hosted dokku
---
name: 'deploy'
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: 'ssh://dokku@HOST_NAME/APP_NAME'
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment