From 6c6e5e3e6e9eee3c8ed060168425479193412004 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Fri, 15 Feb 2019 11:58:33 +0100 Subject: [PATCH] Unified documentation and readme --- README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index b4bd438..fc6ebd6 100644 --- a/README.md +++ b/README.md @@ -14,14 +14,12 @@ Drone plugin to build and publish Docker images to a container registry. For the Build the binaries with the following commands: -``` +```console export GOOS=linux export GOARCH=amd64 export CGO_ENABLED=0 export GO111MODULE=on -go test -cover ./... - go build -v -a -tags netgo -o release/linux/amd64/drone-docker ./cmd/drone-docker go build -v -a -tags netgo -o release/linux/amd64/drone-gcr ./cmd/drone-gcr go build -v -a -tags netgo -o release/linux/amd64/drone-ecr ./cmd/drone-ecr @@ -32,7 +30,7 @@ go build -v -a -tags netgo -o release/linux/amd64/drone-heroku ./cmd/drone-herok Build the Docker images with the following commands: -``` +```console 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) \ @@ -56,9 +54,9 @@ docker build \ ## Usage -Execute from the working directory: +> Notice: Be aware that the Docker plugin currently requires privileged capabilities, otherwise the integrated Docker daemon is not able to start. -``` +```console docker run --rm \ -e PLUGIN_TAG=latest \ -e PLUGIN_REPO=octocat/hello-world \