Skip to content

Commit 31887b4

Browse files
committed
switch to golang 1.23
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 414f8fe commit 31887b4

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#############################################
22
# Build
33
#############################################
4-
FROM --platform=$BUILDPLATFORM golang:1.22-alpine as build
4+
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS build
55

66
RUN apk upgrade --no-cache --force
77
RUN apk add --update build-base make git
@@ -21,7 +21,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build
2121
#############################################
2222
# Test
2323
#############################################
24-
FROM gcr.io/distroless/static as test
24+
FROM gcr.io/distroless/static AS test
2525
USER 0:0
2626
WORKDIR /app
2727
COPY --from=build /go/src/github.com/webdevops/azure-metrics-exporter/azure-metrics-exporter .
@@ -30,7 +30,7 @@ RUN ["./azure-metrics-exporter", "--help"]
3030
#############################################
3131
# final-static
3232
#############################################
33-
FROM gcr.io/distroless/static as final-static
33+
FROM gcr.io/distroless/static AS final-static
3434
ENV LOG_JSON=1
3535
WORKDIR /
3636
COPY --from=test /app .

go.mod

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module github.com/webdevops/azure-metrics-exporter
22

3-
go 1.22.0
4-
5-
toolchain go1.23.1
3+
go 1.23
64

75
require (
86
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.14.0

0 commit comments

Comments
 (0)