-
Notifications
You must be signed in to change notification settings - Fork 22
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
Running linux-x64-cwebp binary fails in GitHub Actions #15
Comments
I was also running into this and found a solution. I spun my wheels thinking that the error was saying it couldn't find the binary file or the images. However, the exec command inside the plugin returns a It's a little hacky right now, but you can see my fork of helaili's Actions here: https://github.com/xsalazar/jekyll-action The change to the Dockerfile is here and just uses an Ubuntu base and installs some dependencies. It's slower, but not a huge deal if you're not looking for instant(ish) builds. |
Thank you @xsalazar , that does work! It would be nice if this could be pushed upstream as well. |
Thanks for finding this! I'm having the same error but I don't have a Dockerfile as part of my workflow. I tried using yours (subtracking the last two lines) with container: but it didn't like that. I assume it's some simple copying of your setup steps into my workflow, but the documentation on how to do that isn't great. How do I incorporate your changes without switching everything up? Here's my workflow: https://github.com/datapolitical/chrisfnicholson.github.io/blob/main/.github/workflows/build-jekyll.yml
|
From my understanding, you're saying you're seeing this issue and, looking at your Since it looks like you've already built out the inputs for that Action, you could just fork it yourself, change the image, and then point your Action to use your fork. |
So I’ve tried this but there are differences between alpine and Ubuntu and so I kept hitting errors. (apk vs apt for example). I cut an if statement asking whether I’m using GitHub because it couldn’t parse it correctly and I know I am, and now it’s throwing a “source: not found” error because it can’t figure out the correct location of the file for the next step and I’m at a loss for what wrong. I think I’ve got the location right, but I’m not sure if it’s that “source” isn’t a thing in Ubuntu or what it means. Here’s the file where it’s getting stuck on the last line: https://github.com/datapolitical/jekyll-deploy-action/blob/v0.2.6/entrypoint.sh I’m sure you’ll spot what’s wrong in a second. |
@datapolitical I'm not sure off the top of my head, but the filesystem structure might not be what you expect there. It looks like the Dockerfile copies over the provider folder here. So inside your |
That was my first attempt. I just figured it out. Turns out it wanted to be run in bash rather than sh, and that fixed the problem. |
@xsalazar how do you handle caching? I'm now running into an issue where the WebP plugin is re-generating all the assets every time because the deploy-action cleans the gh-pages each time (so I have to solve that). And all the dependencies from your script take a long time to install. It's not killer but I'd like to not have deployment take 10 minutes every time. |
I chose to ignore that. My solution is a little hacky and needs to rerun the process twice due to timing issues in the build. It takes a while, but time is not an issue for me. I would assume this is why the original images use a much smaller, tailored OS. I attempted to get the libraries installed on Alpine, but it quickly spiraled out of control and was just easier to use a base Ubuntu image. |
That makes sense. I really appreciate your help with this. |
@datapolitical You got it! ✨ |
I'm using this GitHub action https://github.com/helaili/jekyll-action which enables third-party gems support on GitHub Pages. I can confirm that other third-party gems that I use work fine but this one doesn't. It fails with following error:
Using some debug logging statements, I noticed 'Permission denied' errors, but sudo doesn't work either.
From the GitHub Actions docs:
Any suggestions on how to proceed?
BTW I also had to add
require 'date'
to the jekyll-webp.gemspec file because it wasn't imported automatically.Moreover, the gem that is installed via
gem install jekyll-webp
doesn't seem to work (even locally) which is why I'm pulling the GitHub version of this gem directly.The text was updated successfully, but these errors were encountered: