There’s no rbenv on the cloudflare builder machines. Trying to use rbenv results in “rbenv: not found”.
As I said, I was able to get Jekyll working on my local machine. Just not on the builder machines.
I did not configure anything on the builders - just empty environment and am using a Makefile to run the build process, which calls the necessary commands.
You need to have your Gemfile committed to the repo for Cloudflare pages to pick it up during the CI process. See my blog repo which uses Jekyll and is hosted on Cloudflare Pages.
2023-03-05T23:11:04.800743Z Cloning repository...
2023-03-05T23:11:05.802646Z From PRIVATE-REPO
...
2023-03-05T23:11:05.980642Z
2023-03-05T23:11:06.006301Z Success: Finished cloning repository files
2023-03-05T23:11:06.670522Z Installing dependencies
2023-03-05T23:11:06.681407Z Python version set to 2.7
2023-03-05T23:11:10.160422Z v12.18.0 is already installed.
2023-03-05T23:11:11.325326Z Now using node v12.18.0 (npm v6.14.4)
2023-03-05T23:11:11.541516Z Started restoring cached build plugins
2023-03-05T23:11:11.556053Z Finished restoring cached build plugins
2023-03-05T23:11:12.002654Z Attempting ruby version 2.7.1, read from environment
2023-03-05T23:11:15.403166Z Using ruby version 2.7.1
2023-03-05T23:11:15.749953Z Using PHP version 5.6
2023-03-05T23:11:15.90815Z 5.2 is already installed.
2023-03-05T23:11:15.93464Z Using Swift version 5.2
2023-03-05T23:11:15.935007Z Installing Hugo 0.54.0
2023-03-05T23:11:16.622894Z Hugo Static Site Generator v0.54.0-B1A82C61A/extended linux/amd64 BuildDate: 2019-02-01T10:04:38Z
2023-03-05T23:11:16.626795Z Started restoring cached go cache
2023-03-05T23:11:16.644586Z Finished restoring cached go cache
2023-03-05T23:11:16.786769Z go version go1.14.4 linux/amd64
2023-03-05T23:11:16.800683Z go version go1.14.4 linux/amd64
2023-03-05T23:11:16.803632Z Installing missing commands
2023-03-05T23:11:16.80399Z Verify run directory
2023-03-05T23:11:16.804206Z Executing user command: jekyll build
2023-03-05T23:11:16.80892Z /opt/build/bin/build: line 39: jekyll: command not found
2023-03-05T23:11:16.814314Z Failed: build command exited with code: 127
2023-03-05T23:11:17.869489Z Failed: an internal error occurred