mirror of
https://github.com/actions/cache.git
synced 2026-01-01 10:29:50 +11:00
Add support for S3 endpoints
This commit is contained in:
parent
1def6032df
commit
7994cabd39
6 changed files with 11 additions and 5 deletions
3
dist/save/index.js
vendored
3
dist/save/index.js
vendored
|
|
@ -93784,6 +93784,7 @@ if (process.env.RUNS_ON_RUNNER_NAME && process.env.RUNS_ON_RUNNER_NAME !== "") {
|
|||
}
|
||||
const versionSalt = "1.0";
|
||||
const bucketName = process.env.RUNS_ON_S3_BUCKET_CACHE;
|
||||
const endpoint = process.env.RUNS_ON_S3_BUCKET_ENDPOINT;
|
||||
const region = process.env.RUNS_ON_AWS_REGION ||
|
||||
process.env.AWS_REGION ||
|
||||
process.env.AWS_DEFAULT_REGION;
|
||||
|
|
@ -93793,7 +93794,7 @@ const uploadQueueSize = Number(process.env.UPLOAD_QUEUE_SIZE || "4");
|
|||
const uploadPartSize = Number(process.env.UPLOAD_PART_SIZE || "32") * 1024 * 1024;
|
||||
const downloadQueueSize = Number(process.env.DOWNLOAD_QUEUE_SIZE || "8");
|
||||
const downloadPartSize = Number(process.env.DOWNLOAD_PART_SIZE || "16") * 1024 * 1024;
|
||||
const s3Client = new client_s3_1.S3Client({ region, forcePathStyle });
|
||||
const s3Client = new client_s3_1.S3Client({ region, forcePathStyle, endpoint });
|
||||
function getCacheVersion(paths, compressionMethod, enableCrossOsArchive = false) {
|
||||
// don't pass changes upstream
|
||||
const components = paths.slice();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue