CodeIgniter4
CodeIgniter4 copied to clipboard
Dev: Cannot update the official User Guide
Since v4.4.6 we cannot update the official User Guide. See #8757
The following workflow does not work. https://github.com/codeigniter4/userguide/blob/master/.github/workflows/deploy.yml
Run entrypoint.sh
Will download drone-ssh-1.7.4-linux-amd64 from https://github.com/appleboy/drone-ssh/releases/download/v1.7.4
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
100 5580k 100 5580k 0 0 ***.6M 0 --:--:-- --:--:-- --:--:-- ***.6M
======CMD======
/opt/userguide/.github/scripts/deploy
======END======
2024/04/07 10:07:58 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Error: Process completed with exit code 1.
https://github.com/codeigniter4/userguide/actions/runs/8587951528/job/23532221115
@kenjis I have some Linux knowledge, do you need specific help with that?
@helmerdavila Thank you! I don't know about administration situation for the official server at all. @lonnieezell and @MGatner know.
======CMD======
/opt/userguide/.github/scripts/deploy
======END======
2024/04/14 04:19:56 ssh: handshake failed: ssh: unable to authenticate, attempted methods [none publickey], no supported methods remain
Error: Process completed with exit code 1.
https://github.com/codeigniter4/userguide/actions/runs/8678283370/job/23795012255
@kenjis it might be the that the type of the SSH key is not supported.
Here the docs about the GitHub action says something about it https://github.com/appleboy/ssh-action?tab=readme-ov-file#if-you-are-using-openssh
@kenjis I reached out on a forum thread.
I also have workaround ideas. Possibly the website could redirect to the github hosted documentation if that is less complex & more manageable. this is assuming Github is not billing for website usage, of course.
Now I've got the server admin privilege, and am trying to update the deployment workflows.
Does anyone know how to configure fingerprint
with appleboy/ssh-action
?
======CMD======
/opt/website/.github/scripts/***.sh
======END======
2024/05/18 10:53:48 ssh: handshake failed: ssh: host key fingerprint mismatch
https://github.com/codeigniter4projects/website/actions/runs/9139334282/job/25131504353
Since you just received the server admin privilege, are you running the original Docker container image? Are you running it from a different computer? The error seems to indicate a mismatch between the ssh key used and the one GitHub expects.
The ssh-action README seems t tell how to generate keys. https://github.com/appleboy/ssh-action/blob/master/README.md
I am just throwing out ideas to consider since I have done much troubleshooting but an not very familiar with GitHub actions.
@bwosborne2 I just use appleboy/ssh-action
.
See https://github.com/codeigniter4projects/website/blob/develop/.github/workflows/deploy.yml
This is for deployment of the official site, but we use the same appleboy/ssh-action
for deployment of the user guide.
It is an issue in appleboy/ssh-action
or my setting for it.
I configured the fingerprint according to the README.
But if I set the fingerprint, SSH handshake fails.
So I removed the fingerprint configuration for now.
Fixed. https://github.com/codeigniter4/userguide/actions/workflows/deploy.yml