Skip to content
This repository has been archived by the owner on Sep 15, 2020. It is now read-only.

drone-plugins/drone-greenkeeper

Repository files navigation

drone-greenkeeper

Build Status Gitter chat Join the discussion at https://discourse.drone.io Drone questions at https://stackoverflow.com 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

About

Drone plugin for using Greenkeeper's lockfile support

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published