drone-gpgsign
Drone plugin to sign artifacts with GnuPG. 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-gpgsign
docker build --rm -t plugins/gpgsign .
Usage
docker run --rm \
-e PLUGIN_key=$(base64 -i path/to/private.key) \
-e PLUGIN_PASSPHRASE=p455w0rd \
-e PLUGIN_FILES=dist/* \
-v $(pwd):$(pwd) \
-w $(pwd) \
plugins/gpgsign