Closed hashimaziz1 closed 2 years ago
This seems not a Deployer issue. Please, reopen in discussions under Q&A.
It's not a Deployer issue but it is definitely an issue with the GitHub Action for Deployer or how I've set it up. As I've said, I can run both ssh user@host -p 22
and dep ssh
from my local machine without issue, it's just when it comes to the action that the network becomes unreachable.
Hi,
Came across exact same issue with @hashimaziz1, the only difference is I can see in his/her action log has
2022-03-29T00:53:35.5121943Z ##[group]Run deployphp/action@master
2022-03-29T00:53:35.5122456Z with:
2022-03-29T00:53:35.5136080Z private-key: ***
2022-03-29T00:53:35.5138680Z known-hosts: ***
2022-03-29T00:53:35.5139162Z dep: deploy -vvv
2022-03-29T00:53:35.5139644Z env:
2022-03-29T00:53:35.5140115Z COMPOSER_PROCESS_TIMEOUT: 0
2022-03-29T00:53:35.5140637Z COMPOSER_NO_INTERACTION: 1
while mine, none (here) using this configuration
with:
dep: deploy -f scripts/deploy.php -vvv
skip-ssh-setup: false
ansi: true
verbosity: -v
I'm thinking that is it actually configure the ssh setup properly?
My bad, I miss configure the workflows. Missing secrets: inherit
as described here
cc creasico/laravel-project#24
I've double-checked that my SSH credentials are correct, I've confirmed that I can successfully log in to my server with
ssh <user@host> -p 22
, I've searched the error message loads of time with seemingly no match, but no matter what I try I can't seem to get GitHub Actions working with Deployer.What I have noticed is that the
deploy
stage seems to take 4 mins for the error message to appear, and then another ~4 mins or so for the cleanup job to finish so that GitHub Actions actually marks it as failed. There's also pretty much nothing of the deploy stage in the GitHub Actions output despite the fact that I'm usingdeploy -vvv
.Here is my
.git/workflows/deploy-on-push.yml
:Here is the raw (and relatively short) log file when running with
dep: deploy -vvv
:Why is GitHub Action with Deployer failing?
I can also provide my
deploy.yml
if required, although I'm able to deploy fine locally without GitHub Actions so the problem seems to be with the above Action file.Thanks in advance, I would really appreciate some help with this because I spent the whole of yesterday banging my head over it.