Closed neverabsolute closed 1 month ago
@neverabsolute Did you try using branch
parameter in your configuration?
https://github.com/dokku/github-action/blob/master/README.md#inputs
- name: Push to dokku
uses: dokku/github-action@master
with:
git_remote_url: ssh://dokku@${{ vars.DOKKU_SERVER_IP }}:22/{{ vars.DOKKU_APP_NAME }}
ssh_private_key: ${{ secrets.SSH_PRIVATE_KEY }}
branch: staging
Yeah that method of specifying a branch is what you want. You can set it to main
if thats the branch you push to.
Description of problem
Deploying from a branch other than master does not work
How reproducible
Use the example action file provided for deploying from a branch other than master
Steps to reproduce
Actual Results
Expected Results
For it to deploy
Environment Information
N/A
How (deb/make) and where (AWS, VirtualBox, physical, etc.) was Dokku installed?:
Followed install instructions on website, running on AWS EC2
Additional information
The following script works as intended
Related to #16, just wanted to share this in case it helped other people.