Skip to content

Warning

You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?

Dokku Github Action

Actions
Deploy applications to Dokku
v4.0
Star (78)

Tags

 (1)

Dokku for GitHub Actions

Deploy a master branch to your Dokku server.

This action will deploy the master brunch to your Dokku server via SSH.

Usage

To use the action simply add the following lines to your .github/workflows/main.yml

name: CD

on:
  push:
    branches:
      - master

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Dokku deploy
      uses: vitalyliber/[email protected]
      env:
        PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
        PUBLIC_KEY: ${{ secrets.PUBLIC_KEY }}
        HOST: casply.com
        PROJECT: kawaii

Required Secrets

You'll need to provide some secrets to use the action.

  • PRIVATE_KEY: Your SSH private key.
  • PUBLIC_KEY: Your SSH public key.

Required Environments

You'll need to provide some env to use the action.

  • HOST: The host the action will SSH to run the git push command. ie, your.site.com.
  • PROJECT: The project is Dokku project name.
  • BRANCH: Repository branch that should be used for deploy, master is set by default.
  • PORT: Port of the sshd listen to, 22 is set by default.

Optional Environments

You can optionally provide the following:

  • FORCE_DEPLOY: Force push the project to dokku, e.g. FORCE_DEPLOY=true

License

The Dockerfile and associated scripts and documentation in this project are released under the MIT License.

Dokku Github Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Deploy applications to Dokku
v4.0

Tags

 (1)

Dokku Github Action is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.