Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/renovate-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ build-users-group =
# One build at a time, so no build starts before we can clean up /homeless-shelter.
max-jobs = 1

# Removes /homeless-shelter after each build (see the hook script above).
# Removes /homeless-shelter after each successful build. The crossplane-nix launcher covers any
# failed builds this misses.
post-build-hook = /usr/local/bin/nix-clean-homeless-shelter

# Use the Crossplane Cachix cache to download pre-built binaries from CI.
Expand All @@ -43,6 +44,8 @@ EOF
# and the config it reads.
cat >/usr/local/bin/crossplane-nix <<'EOF'
#!/bin/bash
# ensure any leftover /homeless-shelter from a failed build is cleaned up before we start
/usr/local/bin/nix-clean-homeless-shelter
exec env NIX_CONF_DIR=/etc/nix /usr/bin/nix "$@"
EOF
chmod +x /usr/local/bin/crossplane-nix
Expand Down
Loading