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 <mblaschke82@gmail.com>
  • Loading branch information
mblaschke committed Sep 14, 2024
1 parent d305722 commit 02d553d
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-resourcemanager-exporter/azure-resourcemanager-exporter .
Expand All @@ -30,7 +30,7 @@ RUN ["./azure-resourcemanager-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-resourcemanager-exporter

go 1.22.0

toolchain go1.23.1
go 1.23

require (
github.com/anvie/port-scanner v0.0.0-20180225151059-8159197d3770
Expand Down

0 comments on commit 02d553d

Please sign in to comment.