drone-greenkeeper

command module
v0.0.0-...-c99432e Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

README

drone-greenkeeper

Build Status Gitter chat Go Doc Go Report

Drone plugin to use greenkeeper-lockfile when using a package.lock or yarn.lock within a JavaScript project. For the usage information and a listing of available options please take a look at the docs.

Build

Build the binary with the following command:

export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on

go build -v -a -tags netgo -o release/linux/amd64/drone-greenkeeper

Docker

Build the Docker image with the following command:

docker build \
  --label org.label-schema.build-date=$(date -u +"%Y-%m-%dT%H:%M:%SZ") \
  --label org.label-schema.vcs-ref=$(git rev-parse --short HEAD) \
  --file docker/Dockerfile.linux.amd64 --tag plugins/greenkeeper .

Usage

docker run --rm \
  -e DRONE_REPO=octocat/hello-world \
  -e DRONE_REMOTE_URL=https://github.com/octocat/hello-world.git \
  -e DRONE_BUILD_EVENT=push \
  -e DRONE_COMMIT_BRANCH=greenkeeper/foo-1.0.0 \
  -e DRONE_COMMIT_MESSAGE=chore(package) update foo to version 1.0.0 \
  -e DRONE_JOB_NUMBER=1 \
  -e PLUGIN_UPDATE=true \
  -v $(pwd):$(pwd) \
  -w $(pwd) \
  plugins/greenkeeper

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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