Created
September 18, 2023 06:53
-
-
Save huksley/e4f2470317497f63bb580b7b1a70d1df to your computer and use it in GitHub Desktop.
Github Actions to deploy to privately hosted dokku
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: | |
- master | |
jobs: | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Cloning repo | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Push to dokku | |
uses: dokku/github-action@master | |
with: | |
git_remote_url: 'ssh://dokku@HOST_NAME/APP_NAME' | |
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