Skip to content

Instantly share code, notes, and snippets.

@martinusso
Created May 23, 2020 21:17
Show Gist options
  • Save martinusso/08dd81d0b19dddf39df8bd6d890cd1c3 to your computer and use it in GitHub Desktop.
Save martinusso/08dd81d0b19dddf39df8bd6d890cd1c3 to your computer and use it in GitHub Desktop.
Github Action - Deploy Dokku
name: Deploy using Dokku
on:
push:
branches: [ master ]
jobs:
build:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install SSH key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
known_hosts: ${{ secrets.KNOWN_HOSTS }} # use ssh-keyscan command
config: ${{ secrets.CONFIG }}
- name: dokku
run: |
git remote add dokku dokku@${{ secrets.HOST }}:APP_NAME
git push dokku master --force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment