You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Push to Dokku
v1.0.0
Easily deploy an app to your Dokku Instance from GitHub
Required. The dokku app's git repository url (in SSH format).
Example : ssh://dokku@dokku.myhost.ca:22/appname
Required. An private ssh key that has push acces to your Dokku instance.
Example :
-----BEGIN OPENSSH PRIVATE KEY-----
MIIEogIBAAKCAQEAjLdCs9kQkimyfOSa8IfXf4gmexWWv6o/IcjmfC6YD9LEC4He
qPPZtAKoonmd86k8jbrSbNZ/4OBelbYO0pmED90xyFRLlzLr/99ZcBtilQ33MNAh
...
SvhOFcCPizxFeuuJGYQhNlxVBWPj1Jl6ni6rBoHmbBhZCPCnhmenlBPVJcnUczyy
zrrvVLniH+UTjreQkhbFVqLPnL44+LIo30/oQJPISLxMYmZnuwudPN6O6ubyb8MK
-----END OPENSSH PRIVATE KEY-----
💡 Tip : It is recommanded to use GitHub Actions Secrets to store sensible informations like SSH Keys
This action is particularly useful when triggered by new pushes :
name: 'Deploy to my Dokku instance'
on:
push:
branches:
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo # This step is required
uses: actions/checkout@v2
# This step is required or you might get an error from Dokku
- run: git fetch --prune --unshallow
- name: Push to dokku
uses: obrassard/action-dokku-deploy@v1.0.0
with:
dokku_repo: 'ssh://dokku@dokku.myhost.ca:22/appname'
ssh_key: ${{ secrets.SSH_KEY }}