drone-gcs-cache

command module
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

README

drone-gcs-cache

Drone Build Go Report

This plugin is based on the drone-s3-cache plugin.

Drone plugin that allows you to cache directories within the build workspace, this plugin works with Google Cloud Storage only.For the usage information and a listing of the available options please take a look at the docs.

Build

Build the binary with the following commands:

go build

Docker

Build the Docker image with the following commands:

GOOS=linux GOARCH=amd64 CGO_ENABLED=0 go build -a -tags netgo -o release/linux/amd64/drone-gcs-cache
docker build --rm -t homerovalle/drone-gcs-cache .

Usage

Execute from the working directory:

docker run --rm \
  -e PLUGIN_FLUSH=true \
  -e PLUGIN_JOSN_KEY="jsonkey" \
  -e PLUGIN_BUCKET="yourbucket" \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  homerovalle/drone-gcs-cache

docker run --rm \
  -e PLUGIN_RESTORE=true \
  -e PLUGIN_JOSN_KEY="jsonkey" \
  -e PLUGIN_BUCKET="yourbucket" \
  -e DRONE_REPO_OWNER="foo" \
  -e DRONE_REPO_NAME="bar" \
  -e DRONE_COMMIT_BRANCH="test" \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  homerovalle/drone-gcs-cache

docker run --rm \
  -e PLUGIN_REBUILD=true \
  -e PLUGIN_MOUNT=".bundler" \
  -e PLUGIN_JOSN_KEY="jsonkey" \
  -e PLUGIN_BUCKET="yourbucket" \
  -e DRONE_REPO_OWNER="foo" \
  -e DRONE_REPO_NAME="bar" \
  -e DRONE_COMMIT_BRANCH="test" \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  homerovalle/drone-gcs-cache

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
storage
gcs

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL