File tree Expand file tree Collapse file tree 8 files changed +17
-12
lines changed
Expand file tree Collapse file tree 8 files changed +17
-12
lines changed Original file line number Diff line number Diff line change @@ -10,12 +10,12 @@ jobs:
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- - uses : actions/checkout@v3
13+ - uses : actions/checkout@v4
1414
1515 - name : Setup Go
16- uses : actions/setup-go@v3
16+ uses : actions/setup-go@v5
1717 with :
18- go-version : ' 1.19.5 '
18+ go-version : ' 1.22.1 '
1919
2020 - name : Install dependencies
2121 run : go get .
Original file line number Diff line number Diff line change 22
33.idea /
44.vscode /
5+
6+ # Build artifact
7+ . /main
Original file line number Diff line number Diff line change 1- FROM golang:1.19.5-buster as build
2- LABEL maintainer="Infinity Works "
1+ FROM golang:1.22-bookworm as build
2+ LABEL maintainer="githubexporter "
33
44ENV GO111MODULE=on
55
6- COPY ./ /go/src/github.com/infinityworks /github-exporter
7- WORKDIR /go/src/github.com/infinityworks /github-exporter
6+ COPY ./ /go/src/github.com/githubexporter /github-exporter
7+ WORKDIR /go/src/github.com/githubexporter /github-exporter
88
99RUN go mod download \
1010 && go test ./... \
1111 && CGO_ENABLED=0 GOOS=linux go build -o /bin/main
1212
13- FROM alpine:3.17.5
13+ FROM alpine:3
1414
1515RUN apk --no-cache add ca-certificates \
1616 && addgroup exporter \
Original file line number Diff line number Diff line change 77 @go test -v -race ./...
88
99build :
10- @go build ./...
10+ @go build -o main
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ services:
88 - 9171
99 ports :
1010 - 9171:9171
11- image : infinityworks /github-exporter:latest
11+ image : githubexporter /github-exporter:latest
1212 environment :
1313 - REPOS=<REPOS you want to monitor>
1414 - GITHUB_TOKEN=<your github api token>
Original file line number Diff line number Diff line change 11module github.com/githubexporter/github-exporter
22
3- go 1.19
3+ go 1.22
44
55require (
66 github.com/infinityworks/go-common v0.0.0-20170820165359-7f20a140fd37
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw
1313github.com/golang/protobuf v1.5.2 /go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY =
1414github.com/google/go-cmp v0.5.5 /go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE =
1515github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38 =
16+ github.com/google/go-cmp v0.5.9 /go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY =
1617github.com/infinityworks/go-common v0.0.0-20170820165359-7f20a140fd37 h1:Lm6kyC3JBiJQvJrus66He0E4viqDc/m5BdiFNSkIFfU =
1718github.com/infinityworks/go-common v0.0.0-20170820165359-7f20a140fd37 /go.mod h1:+OaHNKQvQ9oOCr+DgkF95PkiDx20fLHpzMp8SmRPQTg =
1819github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE =
@@ -58,6 +59,7 @@ google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175
5859google.golang.org/protobuf v1.28.1 /go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I =
5960gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 /go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0 =
6061gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c h1:Hei/4ADfdWqJk1ZMxUNpqntNwaWcugrBjAiHlqqRiVk =
62+ gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c /go.mod h1:JHkPIbrfpd72SG/EVd6muEfDQjcINNoR0C8j2r3qZ4Q =
6163gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
6264gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA =
6365gopkg.in/yaml.v3 v3.0.1 /go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM =
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func NewServer(exporter exporter.Exporter) *Server {
2727 <head><title>Github Exporter</title></head>
2828 <body>
2929 <h1>GitHub Prometheus Metrics Exporter</h1>
30- <p>For more information, visit <a href=https://github.com/infinityworks /github-exporter>GitHub</a></p>
30+ <p>For more information, visit <a href=https://github.com/githubexporter /github-exporter>GitHub</a></p>
3131 <p><a href='` + exporter .MetricsPath () + `'>Metrics</a></p>
3232 </body>
3333 </html>
You can’t perform that action at this time.
0 commit comments