Google Cloud Storage
Driver: gcs
This storage driver stores the cache in a GCS bucket.
Configuration
docker-compose
GCS bucket
version: '3.9'
services:
cache-server:
image: ghcr.io/falcondev-oss/github-actions-cache-server:latest
ports:
- '3000:3000'
environment:
URL_ACCESS_TOKEN: random_token
API_BASE_URL: http://localhost:3000
STORAGE_DRIVER: gcs
STORAGE_GCS_BUCKET: gh-actions-cache
# Optional, not required if running in GCP
STORAGE_GCS_SERVICE_ACCOUNT_KEY: /gcp/config/application_default_credentials.json
volumes:
- cache-data:/app/.data
# Use host's application default credentials
- $HOME/.config/gcloud:/gcp/config:ro
volumes:
cache-data:
Environment Variables
Don't forget to set the STORAGE_DRIVER
environment variable to gcs
to use the GCS storage driver.
STORAGE_GCS_BUCKET
Example: gh-actions-cache
The name of the GCS bucket used for storage.
STORAGE_GCS_SERVICE_ACCOUNT_KEY
Example: /config/auth/serviceaccount.json
Path to the service account key used for authentication. If not set, Application Default Credentials is used.
STORAGE_GCS_ENDPOINT
Example: http://localhost:9000
The API endpoint for GCS.
File System
The File System storage driver stores the cache in the local file system of the cache server. This is the default storage driver and is used when no other storage driver is specified.
Memory
The memory storage driver stores the cache in memory. This is useful for testing and development purposes but should not be used in production.