mirror of
https://github.com/nikdoof/hg612-exporter.git
synced 2025-12-27 17:49:22 +00:00
Compare commits
7 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 24766c5931 | |||
|
6d212d488f
|
|||
|
fac6dacc47
|
|||
|
d51167ac6f
|
|||
|
|
0e3bc340f9 | ||
|
0a8edc22d6
|
|||
|
8eb5ab412c
|
28
.github/workflows/build-docker-image.yaml
vendored
28
.github/workflows/build-docker-image.yaml
vendored
@@ -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
|
||||
|
||||
3
.github/workflows/release.yaml
vendored
3
.github/workflows/release.yaml
vendored
@@ -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
3
CONTRIBUTORS
Normal file
@@ -0,0 +1,3 @@
|
||||
Jake Keeys
|
||||
Dominic Evans
|
||||
Andrew Williams
|
||||
@@ -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 .
|
||||
|
||||
@@ -1,7 +1,5 @@
|
||||
# HG612 Prometheus Exporter
|
||||
|
||||
[](https://quay.io/repository/jakekeeys/hg612-exporter)
|
||||
|
||||
A prometheus exporter for the HG612 modem
|
||||
|
||||
 
|
||||
@@ -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
|
||||
|
||||

|
||||

|
||||
|
||||
Reference in New Issue
Block a user