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 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
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 .
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