-
Notifications
You must be signed in to change notification settings - Fork 193
Expand file tree
/
Copy pathlake-cache.toml
More file actions
44 lines (40 loc) · 1.82 KB
/
Copy pathlake-cache.toml
File metadata and controls
44 lines (40 loc) · 1.82 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# Lake cache configuration for Physlib.
#
# Point Lake at this file with LAKE_CONFIG, e.g.
#
# LAKE_CONFIG=$PWD/lake-cache.toml lake cache get
#
# `lake exe get_cache` (scripts/get_cache.lean) does that for you. Bucket
# endpoints are public information, which is why this file is committed; the
# credential that authorises uploads is NOT here. It is supplied via the
# LAKE_CACHE_KEY environment variable, held as an encrypted GitHub Actions
# secret.
#
# Two services are defined because reads and writes need different access:
#
# physlib-r2 anonymous, public read endpoint. What contributors and
# `lake cache get` use. No credential required. The contents
# of the bucket are public info
# physlib-r2-upload authenticated S3 endpoint, used only by CI to publish.
# Requires LAKE_CACHE_KEY.
#
# Keeping them separate means a contributor can never accidentally write to
# the cache, and mirrors how Mathlib separates its read and write paths.
#
# ---------------------------------------------------------------------------
# Both endpoints point at the physlib-cache bucket. Reads go through its
# Public Development URL.
cache.defaultService = "physlib-r2"
cache.defaultUploadService = "physlib-r2-upload"
# Anonymous read path used by contributors.
[[cache.service]]
name = "physlib-r2"
kind = "s3"
artifactEndpoint = "https://lake-cache.physlib.io/artifacts"
revisionEndpoint = "https://lake-cache.physlib.io/revisions"
# Authenticated write path used by CI only. Same bucket, S3 API endpoint.
[[cache.service]]
name = "physlib-r2-upload"
kind = "s3"
artifactEndpoint = "https://305f4708d1749d8e1873f7a629768540.r2.cloudflarestorage.com/physlib-cache/artifacts"
revisionEndpoint = "https://305f4708d1749d8e1873f7a629768540.r2.cloudflarestorage.com/physlib-cache/revisions"