I am trying to build my Mkdocs-based digital garden site (via pipenv
’s Pipfile scripts) and the deploy straight to Cloudflare Workers (as a static site) on GitLab CI, but I am getting command not found
errors.
$ devenv tasks run wiki:deploy
• Evaluating tasks ...
Using Cachix: nixpkgs-python, devenv
✔ Evaluating tasks in 2.44s
Running tasks wiki:deploy
Running wiki:deploy
Failed wiki:deploy (20.53ms)
1 Failed
--- wiki:deploy failed with error: Task exited with status: exit status: 127
--- wiki:deploy stdout:
--- wiki:deploy stderr:
0000.00: /nix/store/k40lljy0p3sm3dgik8vzm8rri953jhmr-wiki-deploy: line 3: pipenv: command not found
---
Error: × Some tasks failed
Since I can’t just hack around the devenv Docker image to handle .envrc
loading for caching devenv evals on future devenv shell
runs in the same job (but that would involve using self-hosted runners instead of the ones provided on GitLab SaaS or the instance you are using if outside of GitLab.com), is there any workarounds on that?
Reproducibility notes
- Config: .gitlab-ci.yml · main · Andrei Jiroh Lair / Digital Garden and Wiki · GitLab for GitLab CI, devenv.nix · main · Andrei Jiroh Lair / Digital Garden and Wiki · GitLab on the
devenv.nix
itself - The CI logs: pages (#10417952797) · Jobs · Andrei Jiroh Lair / Digital Garden and Wiki · GitLab