Skip to content

Commit

Permalink
switch to golang 1.23
Browse files Browse the repository at this point in the history
Signed-off-by: Markus Blaschke <[email protected]>
  • Loading branch information
mblaschke committed Sep 14, 2024
1 parent 414f8fe commit 31887b4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#############################################
# Build
#############################################
FROM --platform=$BUILDPLATFORM golang:1.22-alpine as build
FROM --platform=$BUILDPLATFORM golang:1.23-alpine AS build

RUN apk upgrade --no-cache --force
RUN apk add --update build-base make git
Expand All @@ -21,7 +21,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build
#############################################
# Test
#############################################
FROM gcr.io/distroless/static as test
FROM gcr.io/distroless/static AS test
USER 0:0
WORKDIR /app
COPY --from=build /go/src/github.com/webdevops/azure-metrics-exporter/azure-metrics-exporter .
Expand All @@ -30,7 +30,7 @@ RUN ["./azure-metrics-exporter", "--help"]
#############################################
# final-static
#############################################
FROM gcr.io/distroless/static as final-static
FROM gcr.io/distroless/static AS final-static
ENV LOG_JSON=1
WORKDIR /
COPY --from=test /app .
Expand Down
4 changes: 1 addition & 3 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
module github.com/webdevops/azure-metrics-exporter

go 1.22.0

toolchain go1.23.1
go 1.23

require (
github.com/Azure/azure-sdk-for-go/sdk/azcore v1.14.0
Expand Down

0 comments on commit 31887b4

Please sign in to comment.