-
Notifications
You must be signed in to change notification settings - Fork 57
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
build performance #19
Comments
yes, same issue |
I looked into this a while back: https://steele.blue/tiny-github-actions/ From what I'd found, the only way to prevent rebuilding the Docker container each time is to publish the built container to Docker Hub, and pull the entire container, a la This can save build time, but it can also increase the download time, depending on the size of the Docker container it has to download. Given that its base is Another nit: if you're pulling prebuilt containers, it'd be nice to pull from the GitHub Package Registry instead of Docker Hub, but this isn't supported yet: https://github.community/t5/GitHub-Actions/How-to-use-GitHub-registry-docker-image-in-a-service/m-p/33965#M1733 |
I see @kitop committed the original Dockerfile https://github.com/netlify/actions/commits/master/build/Dockerfile I wonder if he'd be up for publishing the docker image, rather than every GitHub build using it needing to build it every time. I takes my Hugo site one second to build and four seconds to publish to Netlify. The Netlify action build take 70 seconds. |
For the moment I have much better performance by running |
@Gummibeer - I just tried that:
And got:
|
Actually I changed it to
However, the EDIT - the full correct command is:
|
Sorry, have written from mobile - you are right that it's That's my whole netlify deploy step:
I'm calling the command not with binary path prefix because github actions do not add this path to |
Installing with Thanks - this reduces the time to get netlify working to 24 seconds, down nearly two thirds. |
I saw this recently in the GitHub changelog. Unless I'm missing something, it looks like it would now be possible to pull a prebuilt Docker image from GitHub Package Registry? Changelog Link: https://github.blog/changelog/2020-09-24-github-actions-private-registry-support-for-job-and-service-containers/ |
If any of you are still running into this problem, here's a solution that worked for us: We built our own action that uses the GitHub Container Registry, so that we can pull a prebuilt Docker image as @mike183 suggested. It takes about 15-25 seconds to pull the image, which is much faster than the 1-3 minutes it took to build the Netlify action. The reason we went with Docker instead of installing A couple other advantages of building our own action:
|
The
Build netlify/actions/cli@master
step takes ~1min which decreases the CD performance a lot.Is there a way to optimize the performance? Could a tagged release help if GitHub caches the result?
The text was updated successfully, but these errors were encountered: