7 Commits
0.1.0 ... 0.1.2

Author SHA1 Message Date
24766c5931 Merge pull request #3 from nikdoof/renovate/golang-1.x
chore(deps): update golang docker tag to v1.17.5
2021-12-18 13:09:34 +00:00
6d212d488f Fix tags for Docker Build 2021-12-18 13:07:53 +00:00
fac6dacc47 Add to CONTRIBUTORS 2021-12-18 13:04:40 +00:00
d51167ac6f Switch to GHCR 2021-12-18 13:04:34 +00:00
Renovate Bot
0e3bc340f9 chore(deps): update golang docker tag to v1.17.5 2021-12-09 18:07:15 +00:00
0a8edc22d6 chore: update README 2021-12-05 10:08:53 +00:00
8eb5ab412c fix: release workflow 2021-12-05 10:01:31 +00:00
5 changed files with 22 additions and 22 deletions

View File

@@ -3,30 +3,30 @@ name: ci
on:
push:
branches:
- 'master'
- "master"
tags:
- '[0-9]+.[0-9]+.[0-9]+'
- "[0-9]+.[0-9]+.[0-9]+"
jobs:
docker:
runs-on: ubuntu-latest
steps:
-
name: Set up QEMU
- name: Set up QEMU
uses: docker/setup-qemu-action@v1
-
name: Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v1
-
name: Login to DockerHub
uses: docker/login-action@v1
- name: Login to GHCR
uses: docker/login-action@v1
if: github.event_name != 'pull_request'
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
-
name: Build and push
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: Build and push
id: docker_build
uses: docker/build-push-action@v2
with:
push: true
tags: nikdoof/hg612-exporter:${{ github.ref_name }}
tags: |
ghcr.io/${{ github.repository_owner }}/hg612-exporter:${{ github.ref_name }}
ghcr.io/${{ github.repository_owner }}/hg612-exporter:latest

View File

@@ -23,6 +23,5 @@ jobs:
goos: ${{ matrix.goos }}
goarch: ${{ matrix.goarch }}
goversion: "https://dl.google.com/go/go1.17.4.linux-amd64.tar.gz"
project_path: "./cmd/test-binary"
binary_name: "test-binary"
binary_name: "hg612-exporter"
extra_files: LICENSE README.md

3
CONTRIBUTORS Normal file
View File

@@ -0,0 +1,3 @@
Jake Keeys
Dominic Evans
Andrew Williams

View File

@@ -1,4 +1,4 @@
FROM golang:1.17.4-alpine3.15 as build
FROM golang:1.17.5-alpine3.15 as build
WORKDIR /build
COPY . .
RUN go get -d -v .

View File

@@ -1,7 +1,5 @@
# HG612 Prometheus Exporter
[![Docker Repository on Quay](https://quay.io/repository/jakekeeys/hg612-exporter/status "Docker Repository on Quay")](https://quay.io/repository/jakekeeys/hg612-exporter)
A prometheus exporter for the HG612 modem
![](https://i0.wp.com/codeblog.dotsandbrackets.com/wp-content/uploads/2017/01/prometheus-logo.jpg?resize=231%2C231) ![](https://kitz.co.uk/routers/images/huawei_echolife_hg612.jpg)
@@ -20,7 +18,7 @@ NAME:
hg612 prometheus exporter - a metrics exporter for the hg612
USAGE:
main [global options] command [command options] [arguments...]
hg612-exporter [global options] command [command options] [arguments...]
COMMANDS:
help, h Shows a list of commands or help for one command
@@ -39,7 +37,7 @@ GLOBAL OPTIONS:
## Run
* `go run main.go --host <host> --identifier <identifier>`
* `docker run docker run quay.io/jakekeeys/hg612-exporter --host <host> --identifier <identifier>`
* `docker run docker run nikdoof/hg612-exporter --host <host> --identifier <identifier>`
## Metrics
@@ -81,4 +79,4 @@ GLOBAL OPTIONS:
### Grafana Dashboard Preview
![](https://raw.githubusercontent.com/jakekeeys/hg612-exporter/master/resources/dashboard.png)
![](https://raw.githubusercontent.com/nikdoof/hg612-exporter/master/resources/dashboard.png)