Skip to content

Commit 7d60549

Browse files
committed
switch to golang 1.23
Signed-off-by: Markus Blaschke <[email protected]>
1 parent 1cd0003 commit 7d60549

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

Dockerfile

+6-6
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 curl
@@ -26,7 +26,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} make build
2626
#############################################
2727
# Test
2828
#############################################
29-
FROM gcr.io/distroless/static as test
29+
FROM gcr.io/distroless/static AS test
3030
USER 0:0
3131
WORKDIR /app
3232
COPY --from=build /go/src/github.com/webdevops/azure-scheduledevents-manager/azure-scheduledevents-manager .
@@ -37,7 +37,7 @@ RUN ["./kubectl", "version", "--client=true"]
3737
#############################################
3838
# final-ubuntu
3939
#############################################
40-
FROM ubuntu:22.04 as final-ubuntu
40+
FROM ubuntu:22.04 AS final-ubuntu
4141
ENV LOG_JSON=1
4242
WORKDIR /
4343
COPY --from=test /app /usr/local/bin
@@ -47,7 +47,7 @@ ENTRYPOINT ["/usr/local/bin/azure-scheduledevents-manager"]
4747
#############################################
4848
# final-alpine
4949
#############################################
50-
FROM alpine as final-alpine
50+
FROM alpine AS final-alpine
5151
ENV LOG_JSON=1
5252
WORKDIR /
5353
COPY --from=test /app /usr/local/bin
@@ -57,7 +57,7 @@ ENTRYPOINT ["/usr/local/bin/azure-scheduledevents-manager"]
5757
#############################################
5858
# final-distroless
5959
#############################################
60-
FROM gcr.io/distroless/static as final-distroless
60+
FROM gcr.io/distroless/static AS final-distroless
6161
ENV LOG_JSON=1 \
6262
PATH=/
6363
WORKDIR /
@@ -68,7 +68,7 @@ ENTRYPOINT ["/azure-scheduledevents-manager"]
6868
#############################################
6969
# final-kubernetes
7070
#############################################
71-
FROM gcr.io/distroless/static as final-kubernetes
71+
FROM gcr.io/distroless/static AS final-kubernetes
7272
ENV LOG_JSON=1 \
7373
DRAIN_MODE=kubernetes \
7474
PATH=/

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/webdevops/azure-scheduledevents-manager
22

3-
go 1.21
3+
go 1.23
44

55
require (
66
github.com/cespare/xxhash/v2 v2.3.0 // indirect

0 commit comments

Comments
 (0)