File tree Expand file tree Collapse file tree 3 files changed +14
-3
lines changed
Expand file tree Collapse file tree 3 files changed +14
-3
lines changed Original file line number Diff line number Diff line change 1212 runs-on : ubuntu-latest
1313 steps :
1414 - uses : actions/checkout@master
15- - uses : actions/setup-go@v1
15+ - uses : actions/setup-go@v2
1616 with :
17- go-version : ' 1.13.5 '
17+ go-version : ' 1.15 '
1818
1919 - name : Build
2020 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 (
1919 "github-actions-exporter/metrics"
2020)
2121
22- var version = "v1.5"
22+ var version = "v1.5.1 "
2323
2424// main init configuration
2525func main () {
You can’t perform that action at this time.
0 commit comments