Skip to content

Commit c9928e7

Browse files
committed
fix go version in gh actions
1 parent 4df7364 commit c9928e7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
name: Set up Go
2222
uses: actions/setup-go@v2
2323
with:
24-
go-version: 1.17
24+
go-version: 1.18
2525
-
2626
name: Run GoReleaser
2727
uses: goreleaser/goreleaser-action@v2

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
FROM golang:alpine as builder
1+
FROM golang:1.18-alpine3.17 as builder
22
WORKDIR /go/src/app
33
COPY . .
44
RUN CGO_ENABLED=0 go install -ldflags '-extldflags "-static"'
55

6-
FROM scratch
6+
FROM alpine:3.17
77
COPY --from=builder /go/bin/near-exporter /near-exporter
88
COPY --from=alpine:latest /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
99
ENTRYPOINT ["/near-exporter"]

0 commit comments

Comments
 (0)