Comments (2)
This has been implemented in https://github.com/DeterminateSystems/magic-nix-cache which is a purpose-built Nix binary cache server backed by the GitHub Actions Cache.
Making Attic aware of the semantics specific to GitHub Actions Cache (specifically, branch isolation and cache expiry) would be messy.
However, it would be beneficial for Attic to support the GitHub Container Registry as a backend which is more suited for public binary distribution over a longer term. Using OCI registries to distribute non-container artifacts isn't new (e.g., Homebrew and specifically for Nix, oranc). Further reading: NixOS/nix#8400
from attic.
- Watch the store
- Push all newly built things to GH Cache
- So that the next run / build (e.g. on the same branch) is quick
Something like this would still be awesome for other stuff like for example: woodpecker-ci supports something called services, where you can spin up a container that just runs as long as the worker is running. So you could run a semi-persistent container that you can access over the network between pipeline runs. I would love to be able to have a pre-configured attic server running there and use a custom nix container image that uses the attic cache hosted as a service as it's primary binary cache and automatically pushes every newly built object. I also wouldn't care about branch isolation too much since I can just use the normal nix oci image or use another image that is not allowed to push but instead only pull from the cache.
edit: I also found out that https://nixos.org/manual/nix/stable/advanced-topics/post-build-hook exists which would also be a feasible option
from attic.
Related Issues (20)
- Attic tries to request http instead of https HOT 1
- Lower CPU usage settings? HOT 2
- Error: relative URL without a base HOT 1
- panic at sqlx-postgres HOT 6
- Download all records HOT 1
- Duplicate key error while pushing to cache HOT 1
- AccessError - weird race condition with auth token checks? HOT 4
- use differential compression
- warning: 'https://cache.domain.com/prod' does not appear to be a binary cache HOT 14
- Big uploads seem to fail. HOT 2
- S3 backend does not re-use connections HOT 1
- Allow building installables in 'attic push'
- make-token --configure not sufficient for configure --public
- Unable to install with the CI install script HOT 2
- Support aarch64-linux container HOT 2
- client disregards configured port in some cases HOT 1
- nixpkgs attic-client and attic-server collide
- [Feature request] Allow setting pub key for cache
- Benchmarking Cachix vs Attic HOT 1
- `ATTIC_SERVER_DATABASE_URL` is ignored when using from flake HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from attic.