{"id":24551966,"url":"https://github.com/mlabs-haskell/push-cache-effect","last_synced_at":"2025-03-16T13:41:33.313Z","repository":{"id":214521490,"uuid":"733164514","full_name":"mlabs-haskell/push-cache-effect","owner":"mlabs-haskell","description":"Demo showing how to use HerculesCi effect to push to an external cache.","archived":false,"fork":false,"pushed_at":"2024-01-30T18:21:28.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-01-23T01:19:50.304Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mlabs-haskell.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-12-18T17:50:16.000Z","updated_at":"2024-02-07T01:29:46.000Z","dependencies_parsed_at":"2023-12-28T18:48:22.522Z","dependency_job_id":null,"html_url":"https://github.com/mlabs-haskell/push-cache-effect","commit_stats":null,"previous_names":["mlabs-haskell/push-cache-effect"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fpush-cache-effect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fpush-cache-effect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fpush-cache-effect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mlabs-haskell%2Fpush-cache-effect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mlabs-haskell","download_url":"https://codeload.github.com/mlabs-haskell/push-cache-effect/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878408,"owners_count":20362431,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-23T01:19:35.816Z","updated_at":"2025-03-16T13:41:33.286Z","avatar_url":"https://github.com/mlabs-haskell.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# push-cache effect\n\n## Overview\n\nRepository shows how to push some paths to a specified cache with hercules effect.\nWe use a flake-parts module called `push-cache-effect`. For option definitions check source at [TODOLINK](https://github.com/zmrocze/hercules-ci-effects/blob/3fa860ba2b1fe6a2c5e45684f015dc441b9cc202/effects/push-cache/default.nix).\n\n## Secrets\n\nYou need to configure HerculesCI agent providing it with a secret, so that it can access the cache. Check module option docs in hercules-ci-effects ([link1](https://github.com/zmrocze/hercules-ci-effects/blob/3fa860ba2b1fe6a2c5e45684f015dc441b9cc202/effects/push-cache/default.nix), [link2]) for secret's format. For mlabs ask devops to do it.\n\nExample `secret.json`:\n\n```json\n{\n  \"attic-test-token\": {\n    \"condition\" : {\n        \"and\" : [            \n        ]\n    },\n    \"data\": {\n      \"name\": \"cache-name\",\n      \"endpoint\": \"https://cache.staging.mlabs.city/\",\n      \"token\": \"my_push_token\"\n    },\n    \"kind\": \"Secret\"\n  }, \n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabs-haskell%2Fpush-cache-effect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmlabs-haskell%2Fpush-cache-effect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmlabs-haskell%2Fpush-cache-effect/lists"}