Coder Social home page Coder Social logo

GitHub Cache storgage backend about attic HOT 2 OPEN

blaggacao avatar blaggacao commented on July 23, 2024 1
GitHub Cache storgage backend

from attic.

Comments (2)

zhaofengli avatar zhaofengli commented on July 23, 2024 3

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.

Janik-Haag avatar Janik-Haag commented on July 23, 2024
  • 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.