Last active
March 24, 2023 01:38
-
-
Save evzpav/9baa50bc385836cf5069c38194f3a856 to your computer and use it in GitHub Desktop.
.github/workflows/dokku.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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