Skip to content

fasetto/dokku-deploy

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dokku-deploy

What does this action do?

🚀 Deploys your project to dokku.

Usage

Arguments

Name Required? Description Example
dokku-deploy-key true SSH private key to dokku instance. N/A
dokku-host true Dokku host. your-dokku-host.com
dokku-app true Application name on dokku. your-app
dokku-user false Username for dokku host. default: dokku
force-push false Forces git push command with --force flag. default: false

💡 Tip: To avoid shallow update not allowed exception use checkout action with fetch-depth 0 parameter.

Read more about Configuring a workflow.

name: "Deploy to dokku"

on:
  push:
    branches: [ master ]

jobs:
  deploy:

    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v2
        with:
        fetch-depth: 0

      - name: "Deploy to dokku"
        uses: fasetto/dokku-deploy@master
        with:
          dokku-deploy-key: ${{ secrets.DOKKU_DEPLOY_KEY }}
          dokku-host: "your-dokku-host.com"
          dokku-app: "your-app"