https://github.com/drone-plugins/drone-gpgsign
Drone plugin to sign artifacts with GnuPG
https://github.com/drone-plugins/drone-gpgsign
drone drone-plugin
Last synced: 4 months ago
JSON representation
Drone plugin to sign artifacts with GnuPG
- Host: GitHub
- URL: https://github.com/drone-plugins/drone-gpgsign
- Owner: drone-plugins
- License: apache-2.0
- Created: 2018-06-07T12:49:42.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2022-12-19T12:12:03.000Z (over 3 years ago)
- Last Synced: 2024-06-19T16:45:39.683Z (almost 2 years ago)
- Topics: drone, drone-plugin
- Language: Go
- Homepage: http://plugins.drone.io/drone-plugins/drone-gpgsign
- Size: 52.7 KB
- Stars: 8
- Watchers: 4
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# drone-gpgsign
[](http://cloud.drone.io/drone-plugins/drone-gpgsign)
[](https://gitter.im/drone/drone)
[](https://discourse.drone.io)
[](https://stackoverflow.com/questions/tagged/drone.io)
[](https://microbadger.com/images/plugins/gpgsign "Get your own image badge on microbadger.com")
[](http://godoc.org/github.com/drone-plugins/drone-gpgsign)
[](https://goreportcard.com/report/github.com/drone-plugins/drone-gpgsign)
Drone plugin to sign artifacts with [GnuPG](https://gnupg.org/). For the usage information and a listing of the available options please take a look at [the docs](http://plugins.drone.io/drone-plugins/drone-gpgsign/).
## Build
Build the binary with the following command:
```console
export GOOS=linux
export GOARCH=amd64
export CGO_ENABLED=0
export GO111MODULE=on
go build -v -a -tags netgo -o release/linux/amd64/drone-gpgsign
```
## Docker
Build the Docker image with the following command:
```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) \
--file docker/Dockerfile.linux.amd64 --tag plugins/gpgsign .
```
## Usage
```console
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
```