1
0
mirror of https://github.com/ribbybibby/ssl_exporter.git synced 2024-11-27 08:31:02 +02:00

add goreleaser

This makes cutting a new release infinitely easier
This commit is contained in:
Rob Best 2020-03-12 17:25:42 +00:00
parent e3477cf63c
commit 13519dd2da
2 changed files with 34 additions and 7 deletions

26
.github/workflows/release.yaml vendored Normal file
View File

@ -0,0 +1,26 @@
name: release
on:
release:
types:
- created
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
version: latest
args: release --rm-dist
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@ -48,11 +48,18 @@ Similarly to the blackbox_exporter, visiting
will return certificate metrics for example.com. The `ssl_tls_connect_success`
metric indicates if the probe has been successful.
## Docker
### Docker
docker pull ribbybibby/ssl-exporter
docker run -p 9219:9219 ribbybibby/ssl-exporter:latest <flags>
### Release process
- [This github action](.github/workflows/release.yaml) will add a changelog and
upload binaries in response to a release being created in Github
- Dockerhub will build and tag a new container image in response to tags of the
format `/^v[0-9.]+$/`
## Flags
./ssl_exporter --help
@ -202,12 +209,6 @@ For instance:
In order to use the https client, targets must be provided to the exporter with
the protocol in the uri (`https://<host>:<optional port>`).
## Limitations
I've only exported a subset of the information you could extract from a
certificate. It would be simple to add more, for instance organisational
information, if there's a need.
## Acknowledgements
The overall structure and implementation of this exporter is based on the