Deploy a master branch to your Dokku server.
This action will deploy the master brunch to your Dokku server via SSH.
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@v2
- name: Dokku deploy
uses: AlexanderBabel/[email protected]
env:
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
URL: [email protected]:my-app
You'll need to provide some secrets to use the action.
- PRIVATE_KEY: Your SSH private key.
You'll need to provide some env to use the action.
- URL: The ssh url to your dokku server. ie,
[email protected]:project-name
. - BRANCH: Repository branch that should be used for deploy,
master
is set by default.
The Dockerfile and associated scripts and documentation in this project are released under the MIT License.