File tree 3 files changed +14
-3
lines changed
3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@master
15
- - uses : actions/setup-go@v1
15
+ - uses : actions/setup-go@v2
16
16
with :
17
- go-version : ' 1.13.5 '
17
+ go-version : ' 1.15 '
18
18
19
19
- name : Build
20
20
run : CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o github-actions-exporter
Original file line number Diff line number Diff line change
1
+ FROM golang:1.15 as builder
2
+
3
+
4
+ WORKDIR /app
5
+ COPY . .
6
+ RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o bin/app
7
+
8
+ FROM alpine:latest as release
9
+ RUN apk update && apk add ca-certificates && rm -rf /var/cache/apk/*
10
+ COPY --from=builder /app/bin/app .
11
+ CMD ["./app" ]
Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ import (
19
19
"github-actions-exporter/metrics"
20
20
)
21
21
22
- var version = "v1.5"
22
+ var version = "v1.5.1 "
23
23
24
24
// main init configuration
25
25
func main () {
You can’t perform that action at this time.
0 commit comments