Skip to content

Commit

Permalink
fix go version in gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
MattKetmo committed Feb 3, 2023
1 parent 4df7364 commit c9928e7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.17
go-version: 1.18
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand Down
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM golang:alpine as builder
FROM golang:1.18-alpine3.17 as builder
WORKDIR /go/src/app
COPY . .
RUN CGO_ENABLED=0 go install -ldflags '-extldflags "-static"'

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

0 comments on commit c9928e7

Please sign in to comment.