Skip to content

Commit 82738b8

Browse files
v4.0.1 (#82)
2 parents d6111df + 45eda3e commit 82738b8

File tree

7 files changed

+16
-22
lines changed

7 files changed

+16
-22
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ dist/
44
.temp/
55

66
pnpm-lock.yaml
7-
data/
7+
data/
8+
docs/content/**/*.md

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,14 @@ The database driver to use for storing cache metadata. For more information, see
5555

5656
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.
5757

58-
## ::u-alert
59-
58+
::u-alert
59+
---
6060
icon: 'tabler:alert-triangle'
6161
class: ring-amber-400
6262
color: amber
6363
description: The actions runner needs to be able to reach the storage provider directly to use direct downloads.
6464
variant: subtle
65-
6665
---
67-
6866
::
6967

7068
#### `CLEANUP_OLDER_THAN_DAYS`
@@ -89,16 +87,14 @@ To leverage the GitHub Actions Cache Server with your self-hosted runners, you'l
8987

9088
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/`.
9189

92-
## ::u-alert
93-
90+
::u-alert
91+
---
9492
icon: 'tabler:alert-triangle'
9593
class: ring-amber-400
9694
color: amber
9795
description: Make sure to add a trailing slash to the ACTIONS_CACHE_URL environment variable.
9896
variant: subtle
99-
10097
---
101-
10298
::
10399

104100
### Getting the Actions Runner to Use the Cache Server

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,14 @@ Driver: `gcs`
77

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

10-
## ::u-alert
11-
10+
::u-alert
11+
---
1212
icon: 'tabler:alert-triangle'
1313
class: ring-amber-400
1414
color: amber
1515
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.
1616
variant: subtle
17-
1817
---
19-
2018
::
2119

2220
## Configuration

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,14 @@ description:
55

66
Driver: `sqlite`
77

8-
## ::u-alert
9-
8+
::u-alert
9+
---
1010
icon: 'tabler:alert-triangle'
1111
class: ring-amber-400
1212
color: amber
1313
description: It is recommended to use a more robust database driver for production use.
1414
variant: subtle
15-
1615
---
17-
1816
::
1917

2018
## Configuration

docs/nuxt.config.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import wasm from 'vite-plugin-wasm'
22

33
export default defineNuxtConfig({
4+
compatibilityDate: '2024-11-20',
45
extends: ['@nuxt/ui-pro'],
56
modules: ['@nuxt/content', '@nuxt/ui', '@nuxt/fonts', '@nuxthq/studio'],
67
hooks: {
@@ -41,9 +42,7 @@ export default defineNuxtConfig({
4142
routes: ['/'],
4243
},
4344
},
44-
ui: {
45-
icons: ['ph', 'simple-icons'],
46-
},
45+
ui: {},
4746
content: {
4847
highlight: {
4948
langs: [

lib/storage/drivers/filesystem.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@ export const filesystemDriver = defineStorageDriver({
5454
},
5555

5656
async completeMultipartUpload({ uploadId, objectName }) {
57-
await fs.rename(getUploadBufferPath(uploadId), getStoragePath(objectName))
57+
const bufferPath = getUploadBufferPath(uploadId)
58+
await fs.copyFile(bufferPath, getStoragePath(objectName))
59+
await fs.rm(bufferPath)
5860
},
5961

6062
async abortMultipartUpload({ uploadId }): Promise<void> {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "github-actions-cache-server",
33
"type": "module",
4-
"version": "4.0.0",
4+
"version": "4.0.1",
55
"private": true,
66
"packageManager": "pnpm@9.1.3",
77
"engines": {

0 commit comments

Comments
 (0)