WIP of a cache save and restore tool.
To verify the cache and restore worked you can use diff.
diff --recursive ../vite-artifact-demo/app/node_modules node_modules
To enable tracing you need to export the following, to do this you can use direnv.
The following configuration enables grpc transport and sends the data to honeycomb. Update the API_TOKEN_HERE
value with the honeycomb api token.
export TRACE_EXPORTER=grpc
export OTEL_SERVICE_NAME=zstash
export OTEL_EXPORTER_OTLP_ENDPOINT=https://api.honeycomb.io:443
export OTEL_EXPORTER_OTLP_HEADERS=x-honeycomb-team=API_TOKEN_HERE,x-honeycomb-dataset=dev
The gocloud.dev implementation supports multiple storage backends:
- AWS S3:
s3://bucket-name?region=us-east-1
- Google Cloud Storage:
gs://bucket-name
(add_ "gocloud.dev/blob/gcsblob"
) - Azure Blob Storage:
azblob://bucket-name
(add_ "gocloud.dev/blob/azureblob"
) - Local File System:
file:///path/to/directory
(for testing)
To add support for a new cloud provider:
-
Import the appropriate gocloud.dev driver:
import _ "gocloud.dev/blob/gcsblob" // For Google Cloud Storage
-
Use the provider-specific URL format when creating the blob storage.
MIT © Buildkite
SPDX-License-Identifier: MIT