Skip to content

Latest commit

 

History

History
49 lines (34 loc) · 1.17 KB

README.md

File metadata and controls

49 lines (34 loc) · 1.17 KB

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"