Skip to content

Commit 400a939

Browse files
Merge pull request #106 from hainenber/bau-uplift
chore(build): BAU item
2 parents 9c3949f + b8bf66e commit 400a939

File tree

8 files changed

+17
-12
lines changed

8 files changed

+17
-12
lines changed

.github/workflows/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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 .

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@
22

33
.idea/
44
.vscode/
5+
6+
# Build artifact
7+
./main

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
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

44
ENV 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

99
RUN 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

1515
RUN apk --no-cache add ca-certificates \
1616
&& addgroup exporter \

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,4 @@ test:
77
@go test -v -race ./...
88

99
build:
10-
@go build ./...
10+
@go build -o main

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/githubexporter/github-exporter
22

3-
go 1.19
3+
go 1.22
44

55
require (
66
github.com/infinityworks/go-common v0.0.0-20170820165359-7f20a140fd37

go.sum

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ github.com/golang/protobuf v1.5.2 h1:ROPKBNFfQgOUMifHyP+KYbvpjbdoFNs+aK7DXlji0Tw
1313
github.com/golang/protobuf v1.5.2/go.mod h1:XVQd3VNwM+JqD3oG2Ue2ip4fOMUkwXdXDdiuN0vRsmY=
1414
github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
1515
github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38=
16+
github.com/google/go-cmp v0.5.9/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY=
1617
github.com/infinityworks/go-common v0.0.0-20170820165359-7f20a140fd37 h1:Lm6kyC3JBiJQvJrus66He0E4viqDc/m5BdiFNSkIFfU=
1718
github.com/infinityworks/go-common v0.0.0-20170820165359-7f20a140fd37/go.mod h1:+OaHNKQvQ9oOCr+DgkF95PkiDx20fLHpzMp8SmRPQTg=
1819
github.com/kr/pretty v0.3.1 h1:flRD4NNwYAUpkphVc1HcthR4KEIFJ65n8Mw5qdRn3LE=
@@ -58,6 +59,7 @@ google.golang.org/protobuf v1.28.1 h1:d0NfwRgPtno5B1Wa6L2DAG+KivqkdutMf1UhdNx175
5859
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
5960
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
6061
gopkg.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=
6163
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=
6264
gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA=
6365
gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM=

http/server.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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>

0 commit comments

Comments
 (0)