idoberko2 / dokku-deploy-github-action Goto Github PK
View Code? Open in Web Editor NEWDeploy to a dokku instance using Github actions
Deploy to a dokku instance using Github actions
By default, the action tries to push to the Dokku repository without any flags. In cases of pushing to the Dokku repository from other sources, an error might occur, such as #1.
This feature allows passing additional flags to be passed to the git push
command. In the described scenario, using --force
might be considered.
I'm deploying my app on the DigitalOcean machine. The app doesn't take much memory but the docker build does.
Add the option to build the docker image on Github and then deploying it of the cloud by pulling it from the registry.
Hi,
I'm trying to deploy a branch and get the following error message:
GIT_COMMAND=git push deploy 69a6341aa401f37a24739d74eabf3fe292c5cadc:refs/heads/refs/heads/v0.1:master
error: src refspec 69a6341aa401f37a24739d74eabf3fe292c5cadc:refs/heads/refs/heads/v0.1 does not match any.
error: failed to push some refs to '[email protected]:test-app'
I get the same message when trying the git push manually, so I guess it's an issue with git and the reference syntax,
Is it working on your side ?
It would be great if you could add support for creating/overwriting the DOKKU_SCALE
file
- uses: idoberko2/dokku-deploy-github-action@v1
with:
ssh-private-key: ${{ secrets.DOKKU_SSH }}
dokku-host: 'myapi.com'
app-name: 'api'
dokku-scale: 'web=2'
Could execute
echo web=2 > DOKKU_SCALE
Hi,
Thanks for creating this.
Locally I can push to to dokku
e.g. git push deploy a35a0c163cba7bf76ad8f4a7723f25eb453e80c0:refs/heads/master
is successful from my local machine, and dokku generates a new build.
However in the pipeline I'm seeing the following error:
Example failing pipeline
https://github.com/chrisjsimpson/fastapi/runs/993763193?check_suite_focus=true#step:4:18
For testing, I have set-up secrets using the same private key (SSH_PRIVATE_KEY
)
I'm probably missing some key steps on the dokku server in relation to authorised keys.
Any additional documentation on the dokku setup required is much appreciated.
Is it possible to add an option to specify ssh port?
Hi. Thanks for your code. Is it possible to upload a specific commit? I need to upload the old version of the code. How to do it?
error: failed to push some refs to 'dokku@server:project'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
but locally resolved with git push dokku master
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.