Skip to content

Instantly share code, notes, and snippets.

@evzpav
Last active March 24, 2023 01:38
Show Gist options
  • Save evzpav/9baa50bc385836cf5069c38194f3a856 to your computer and use it in GitHub Desktop.
Save evzpav/9baa50bc385836cf5069c38194f3a856 to your computer and use it in GitHub Desktop.
.github/workflows/dokku.yml
name: 'deploy'
on:
push:
branches:
- main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Cloning repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Push to dokku
uses: dokku/[email protected]
with:
git_remote_url: ${{ format('ssh://dokku@{0}:22/my-project-name, vars.VM_IP) }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment