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

Nix build on self-hosted runner fails with ssl certificates #1535

Open
v0d1ch opened this issue Jul 29, 2024 · 0 comments
Open

Nix build on self-hosted runner fails with ssl certificates #1535

v0d1ch opened this issue Jul 29, 2024 · 0 comments
Labels

Comments

@v0d1ch
Copy link
Contributor

v0d1ch commented Jul 29, 2024

https://github.com/input-output-hk/hydra/actions/runs/8003565955/job/21859136773

Seems like the nix develop invocation in the workflow fails fails to download from github when run from the workflow runner.

Manually invoking nix develop in an interactive shell does work and will resolve this until we need to fetch some flake inputs again from github. Note that we need to make sure to checkout the same commit on the github runner.


We tried manually this now:

nix profile install nixpkgs#cacert
cat <<EOF >>$HOME/actions-runner/.env
PATH=$HOME/.nix-profile/bin:/nix/var/nix/profiles/default/bin:/usr/local/bin:/usr/bin:/bin
NIX_PROFILES="/nix/var/nix/profiles/default $HOME/.nix-profile"
NIX_SSL_CERT_FILE="/home/admin/.nix-profile/etc/ssl/certs/ca-bundle.crt"
EOF

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

No branches or pull requests

1 participant