Skip to content

Commit

Permalink
update things for vuln management
Browse files Browse the repository at this point in the history
  • Loading branch information
dwillcocks committed Jun 30, 2021
1 parent 6789b11 commit c6444ff
Show file tree
Hide file tree
Showing 9 changed files with 331 additions and 1,250 deletions.
53 changes: 53 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
name: build

on:
push:
branches:
- main
tags-ignore:
- v*
pull_request:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Slack Start Report
uses: act10ns/[email protected]
if: always()
with:
status: starting
channel: '#github-actions'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TOKEN }}

- name: Checkout
uses: actions/checkout@v2

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.16

- name: Lint
uses: golangci/golangci-lint-action@v2
with:
skip-go-installation: true

- name: Build
uses: goreleaser/[email protected]
with:
version: latest
args: release --snapshot --rm-dist

- name: Slack Finish Report
uses: act10ns/[email protected]
if: always()
with:
status: ${{ job.status }}
steps: ${{ toJson(steps) }}
channel: '#github-actions'
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_TOKEN }}
27 changes: 0 additions & 27 deletions .github/workflows/pr.yaml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,14 @@ jobs:

- name: Login DockerHub
id: dockerLogin
uses: docker/login-action@v1.9.0
uses: docker/login-action@v1.10.0
with:
username: ${{ secrets.DOCKERHUB_BOT_USERNAME }}
password: ${{ secrets.DOCKERHUB_BOT_TOKEN }}

- name: Login Github Container Registry
id: githubContainerRegistryLogin
uses: docker/login-action@v1.9.0
uses: docker/login-action@v1.10.0
with:
registry: "ghcr.io"
username: "danopstech"
Expand All @@ -56,7 +56,7 @@ jobs:

- name: Create Release
id: createRelease
uses: goreleaser/goreleaser-action@v2.5.0
uses: goreleaser/goreleaser-action@v2.6.1
with:
version: latest
args: release --rm-dist
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
A [Speedtest](https://www.speedtest.net) exporter for Prometheus.

[![goreleaser](https://github.com/danopstech/speedtest_exporter/actions/workflows/release.yaml/badge.svg)](https://github.com/danopstech/speedtest_exporter/actions/workflows/release.yaml)
[![build](https://github.com/danopstech/speedtest_exporter/actions/workflows/build.yaml/badge.svg)](https://github.com/danopstech/speedtest_exporter/actions/workflows/build.yaml)
[![License](https://img.shields.io/github/license/danopstech/speedtest_exporter)](/LICENSE)
[![Release](https://img.shields.io/github/release/danopstech/speedtest_exporter.svg)](https://github.com/danopstech/speedtest_exporter/releases/latest)
[![Docker](https://img.shields.io/docker/pulls/danopstech/speedtest_exporter)](https://hub.docker.com/r/danopstech/speedtest_exporter)
![GitHub go.mod Go version](https://img.shields.io/github/go-mod/go-version/danopstech/speedtest_exporter)
![os/arch](https://img.shields.io/badge/os%2Farch-amd64-yellow)
![os/arch](https://img.shields.io/badge/os%2Farch-arm64-yellow)
![os/arch](https://img.shields.io/badge/os%2Farch-armv7-yellow)

> 📡 **[Starlink Monitoring System](https://github.com/danopstech/starlink) uses this Container.** it is a batteries included Docker Compose file to run exporters, Grafana and Prometheus.
[![Go Report Card](https://goreportcard.com/badge/github.com/danopstech/speedtest_exporter)](https://goreportcard.com/report/github.com/danopstech/speedtest_exporter)

## Usage:

Expand Down
5 changes: 2 additions & 3 deletions cmd/speedtest_exporter/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ import (
"net/http"
"time"

"github.com/danopstech/speedtest_exporter/internal/exporter"
"github.com/prometheus/client_golang/prometheus"
"github.com/prometheus/client_golang/prometheus/promhttp"
"github.com/prometheus/common/log"

"github.com/danopstech/speedtest_exporter/internal/exporter"
log "github.com/sirupsen/logrus"
)

const (
Expand Down
Loading

0 comments on commit c6444ff

Please sign in to comment.