Skip to content

Commit 1b474be

Browse files
docs: update to match v4 (#77)
1 parent ef023cc commit 1b474be

File tree

12 files changed

+1810
-2353
lines changed

12 files changed

+1810
-2353
lines changed

docs/content/1.getting-started/1.index.md

Lines changed: 30 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,24 @@ The storage driver to use for storing cache data. For more information, see [Sto
4949

5050
The database driver to use for storing cache metadata. For more information, see [Database Drivers](/getting-started/database-drivers).
5151

52+
#### `ENABLE_DIRECT_DOWNLOADS`
53+
54+
- Default: `false`
55+
56+
If set to `true`, will send a signed URL to the runner. The runner can then download the cache directly from the storage provider. This is useful if you have a large cache and don't want to proxy the download through the cache server.
57+
58+
## ::u-alert
59+
60+
icon: 'tabler:alert-triangle'
61+
class: ring-amber-400
62+
color: amber
63+
description: The actions runner needs to be able to reach the storage provider directly to use direct downloads.
64+
variant: subtle
65+
66+
---
67+
68+
::
69+
5270
#### `CLEANUP_OLDER_THAN_DAYS`
5371

5472
- Default: `90`
@@ -59,12 +77,6 @@ The number of days to keep stale cache data and metadata before deleting it. Set
5977

6078
- Default: `3000`
6179

62-
#### `TEMP_DIR`
63-
64-
- Default: `/tmp`
65-
66-
The directory to use for temporary files (like cache upload buffers).
67-
6880
The port the server should listen on.
6981

7082
## 2. Setup with Self-Hosted Runners
@@ -77,6 +89,18 @@ To leverage the GitHub Actions Cache Server with your self-hosted runners, you'l
7789

7890
For example, if your cache server's `API_BASE_URL` is `http://localhost:3000` and your `URL_ACCESS_TOKEN` is `random_token`, you would set `ACTIONS_CACHE_URL` to `http://localhost:3000/random_token/`.
7991

92+
## ::u-alert
93+
94+
icon: 'tabler:alert-triangle'
95+
class: ring-amber-400
96+
color: amber
97+
description: Make sure to add a trailing slash to the ACTIONS_CACHE_URL environment variable.
98+
variant: subtle
99+
100+
---
101+
102+
::
103+
80104
### Getting the Actions Runner to Use the Cache Server
81105

82106
The default self-hosted runner overwrites the `ACTIONS_CACHE_URL` environment variable with the GitHub-hosted cache server URL. To get the runner to use your self-hosted cache server, you'll need to modify the runner binary:

docs/content/1.getting-started/2.storage-drivers.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ description: A list of storage drivers available for the GitHub Actions Cache Se
66
- [File System](/storage-drivers/filesystem)
77
- [S3 / MinIO](/storage-drivers/s3)
88
- [GCS](/storage-drivers/gcs)
9-
- [Memory](/storage-drivers/memory)

docs/content/2.storage-drivers/gcs.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@ Driver: `gcs`
77

88
This storage driver stores the cache in a GCS bucket.
99

10+
## ::u-alert
11+
12+
icon: 'tabler:alert-triangle'
13+
class: ring-amber-400
14+
color: amber
15+
description: Because GCS doesn't support out-of-order multipart uploads (as of November 2024), the cache server will upload the parts into a temporary folder. To combine the parts into a single object, it will download all the parts and re-upload the combined object. This means using GCS as your storage driver will use 3x the bandwidth compared to other storage drivers.
16+
variant: subtle
17+
18+
---
19+
20+
::
21+
1022
## Configuration
1123

1224
### `docker-compose` GCS bucket
@@ -25,7 +37,7 @@ services:
2537

2638
STORAGE_DRIVER: gcs
2739
STORAGE_GCS_BUCKET: gh-actions-cache
28-
# Optional, not required if running in GCP
40+
# Optional, not required if running on GCP
2941
STORAGE_GCS_SERVICE_ACCOUNT_KEY: /gcp/config/application_default_credentials.json
3042
volumes:
3143
- cache-data:/app/.data

docs/content/2.storage-drivers/memory.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/content/3.database-drivers/postgres.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,3 +26,7 @@ The user to authenticate with the PostgreSQL database.
2626
#### `DB_POSTGRES_PASSWORD`
2727

2828
The password to authenticate with the PostgreSQL database.
29+
30+
#### `DB_POSTGRES_URL`
31+
32+
The full URL to the PostgreSQL database. This is an alternative to the above configuration options.

docs/content/3.database-drivers/sqlite.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ description:
55

66
Driver: `sqlite`
77

8+
## ::u-alert
9+
10+
icon: 'tabler:alert-triangle'
11+
class: ring-amber-400
12+
color: amber
13+
description: It is recommended to use a more robust database driver for production use.
14+
variant: subtle
15+
16+
---
17+
18+
::
19+
820
## Configuration
921

1022
#### `DB_SQLITE_PATH`

docs/content/index.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,13 @@ features:
3333
- title: Storage Drivers
3434
description: Support for multiple storage drivers like S3, file system, and more.
3535
icon: i-ph-database-fill
36-
to: /
36+
to: /getting-started/storage-drivers
3737
target: _blank
3838
- title: No Workflow Changes
3939
description: No need to change any workflow files, just deploy and start using.
4040
icon: i-simple-icons-githubactions
41-
to: /
42-
target: _blank
4341
- title: Self-Hosted
4442
description: Host your own cache server to keep your data private and increase caching speed.
4543
icon: i-ph-lock-fill
46-
to: /
44+
to: /getting-started
4745
target: _blank

docs/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@
1313
},
1414
"dependencies": {
1515
"@iconify-json/ph": "^1.2.1",
16-
"@iconify-json/simple-icons": "^1.2.8",
16+
"@iconify-json/simple-icons": "^1.2.12",
1717
"@nuxt/content": "^2.13.4",
18-
"@nuxt/fonts": "^0.10.0",
19-
"@nuxt/ui-pro": "^1.4.4",
20-
"nuxt": "^3.13.2",
18+
"@nuxt/fonts": "^0.10.2",
19+
"@nuxt/ui-pro": "^1.5.0",
20+
"nuxt": "^3.14.1592",
2121
"ufo": "^1.5.4",
2222
"vite-plugin-wasm": "^3.3.0"
2323
},
2424
"devDependencies": {
25-
"@nuxthq/studio": "^2.1.1",
26-
"vue-tsc": "^2.1.6"
25+
"@nuxthq/studio": "^2.2.1",
26+
"vue-tsc": "^2.1.10"
2727
}
2828
}

0 commit comments

Comments
 (0)