Skip to content

Commit

Permalink
add goreleaser
Browse files Browse the repository at this point in the history
This makes cutting a new release infinitely easier
  • Loading branch information
ribbybibby committed Mar 12, 2020
1 parent e3477cf commit 13519dd
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 7 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -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 }}
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 13519dd

Please sign in to comment.