Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't work on self host runner #209

Closed
oleg-brizy opened this issue Apr 2, 2020 · 11 comments · Fixed by #219
Closed

Doesn't work on self host runner #209

oleg-brizy opened this issue Apr 2, 2020 · 11 comments · Fixed by #219
Labels
enhancement New feature or request
Milestone

Comments

@oleg-brizy
Copy link

oleg-brizy commented Apr 2, 2020

I have two js/node projects and I migrated them successfully on self host runner.

The php project refuses to work https://pastebin.com/raw/LvUPq9ym

I allowed sudo for runner user without password, so the script can install the dependecies it needs. But in logs, after successfull php install, below it shows php not found (weird).

All these github actions are new to me, I thought the migration to self hosted will take a few minutes (no config change) but it took all day and still not working.

Is it possible to use this setup on self hosted or it works only on github cloud?

My config https://pastebin.com/RKSG4e0w
Dockerfile https://pastebin.com/EpZzDfvg

@shivammathur
Copy link
Owner

currently does not support self hosted runners.

@oleg-brizy
Copy link
Author

oleg-brizy commented Apr 2, 2020

Thanks.

Can you explain briefly, why? (just curious)

@shivammathur
Copy link
Owner

Never tested on self hosted runners. Will test and let you know.

@shivammathur shivammathur reopened this Apr 3, 2020
@shivammathur shivammathur added the enhancement New feature or request label Apr 3, 2020
@shivammathur shivammathur added this to the 2.2.0 milestone Apr 3, 2020
@shivammathur
Copy link
Owner

@oleg-brizy It will work on self hosted runners on ubuntu, windows and macos after 2.2.0 release.

@oleg-brizy
Copy link
Author

Will sudo access (without password) be required?

(I have no idea how the dependencies are installed internally, system-wide or some sort of "containers")

@shivammathur
Copy link
Owner

shivammathur commented Apr 3, 2020

Yes, the action requires sudo to install dependencies. The dependencies are installed system-wide.

@RemyyB
Copy link

RemyyB commented Apr 24, 2020

Is 2.2.0 release or later already out? Can't seem to find it anywhere yet ;)

@oleg-brizy
Copy link
Author

@RemyyB It's In Progress

StaticShot_24-04-2020_20-39-15

@georgezim85
Copy link

georgezim85 commented Apr 30, 2020

Doesn't work in act too, for running GitHub Actions locally.
https://github.com/nektos/act

Captura de Tela 2020-04-30 às 19 02 17

@shivammathur
Copy link
Owner

shivammathur commented May 1, 2020

@georgezim85 There are some issues in using nektos/act with setup-php including the one in your screenshot and that it uses a Debian based image.

The solution would be to use nektos/act with a custom docker image over ubuntu which can run this action.

@shivammathur shivammathur added the awaiting-release Added/Fixed and tested, awaiting release label May 7, 2020
@shivammathur shivammathur mentioned this issue May 13, 2020
@shivammathur shivammathur removed the awaiting-release Added/Fixed and tested, awaiting release label May 13, 2020
@shivammathur
Copy link
Owner

shivammathur commented May 13, 2020

@oleg-brizy, @georgezim85 @RemyyB
Now you can use self-hosted runners. Refer to the docs here.

Also added support for nektos/act. Refer to the docs here.

Let me know if there are any issues.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants