Commit graph

12 commits

Author SHA1 Message Date
c54dd89279
fix: ensure /var/tmp exists for skopeo operations
Skopeo may use /var/tmp for temporary files during docker-archive
operations, even when TMPDIR is set. Create the directory to prevent
'no such file or directory' errors.
2026-03-04 17:45:45 +01:00
3ff832a982
fix: use /tmp for TMPDIR instead of PWD/tmp
/tmp should always be writable in containers, whereas PWD/tmp
might not be accessible from nested containers.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-04 17:19:27 +01:00
318db31b94
fix: set TMPDIR for skopeo to writable location 2026-03-04 15:02:02 +01:00
29739f3d4d
feat: make registry auth optional in docker-build-nix
Support unauthenticated registries (e.g., Tailscale-protected internal
registries) by making username/password optional. Only passes credentials
to skopeo if both are provided.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-04 14:56:40 +01:00
255fe0fdcc
fix: use registry.toph.so as default registry 2026-03-04 14:54:26 +01:00
7f3b4032f9
feat: use skopeo instead of docker for image push
Replace docker load + docker push with skopeo copy to push OCI
images directly to the registry. Benefits:
- No Docker daemon required in runner
- More secure (no socket mounting needed)
- Simpler - direct OCI tarball to registry copy
- Works in any environment with skopeo

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-04 14:53:10 +01:00
cd4c6208cc
fix: use if statement instead of continue-on-error for Attic 2026-03-04 14:35:02 +01:00
6534bcfe08
fix: make Attic push non-fatal in docker-build-nix 2026-03-04 14:22:20 +01:00
e702f56d87
fix: add --refresh to nix build to bust eval cache 2026-03-04 13:52:26 +01:00
346b693bc7
fix: use single-user Nix builds in docker-build-nix
Set build-users-group to empty to disable multi-user builds,
which require nixbld group and build users. This allows the
action to work in single-user Nix environments like containers.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-04 12:20:47 +01:00
098e2c0586
fix: enable Nix experimental features in docker-build-nix
Add Nix config step to enable nix-command and flakes features
before building. Also configures Attic substituters for faster builds.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-04 12:14:30 +01:00
b163ffa64b
feat: add docker-build-nix action for reproducible OCI images
Add reusable action for building Docker images with Nix flakes:
- Full reproducibility with Nix derivations
- Attic cache integration for build artifacts
- Optimized layering with dockerTools.buildLayeredImage
- Automatic Nix binary cache usage

Use this instead of docker-build when you want:
- Bit-for-bit identical builds
- Better caching via Attic/Nix
- Smaller, optimized images

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-03-04 12:11:29 +01:00