Skip to content

Commit

Permalink
Build with Go 1.23
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Ellis (OpenFaaS Ltd) <[email protected]>
  • Loading branch information
alexellis committed Dec 20, 2024
1 parent 483d2ad commit 6de492c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/openfaas/license-check:0.4.1 as license-check
FROM ghcr.io/openfaas/license-check:0.4.2 as license-check

# Build stage
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23 as builder

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down Expand Up @@ -40,7 +40,7 @@ RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} CGO_ENABLED=0 \
-o faas-cli

# CICD stage
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.20.0 as root
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.21.0 as root

ARG REPO_URL

Expand All @@ -57,7 +57,7 @@ ENV PATH=$PATH:/usr/bin/
ENTRYPOINT [ "faas-cli" ]

# Release stage
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.20.0 as release
FROM --platform=${TARGETPLATFORM:-linux/amd64} alpine:3.21.0 as release

ARG REPO_URL

Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.redist
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
FROM ghcr.io/openfaas/license-check:0.4.1 as license-check
FROM ghcr.io/openfaas/license-check:0.4.2 as license-check

# Build stage
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22 as builder
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.23 as builder

ARG GIT_COMMIT
ARG VERSION
Expand Down Expand Up @@ -70,7 +70,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build --ldflags "-s -w \
-o faas-cli-arm64

# Release stage
FROM alpine:3.20.2 as release
FROM alpine:3.21.0 as release

RUN apk --no-cache add ca-certificates git

Expand Down

0 comments on commit 6de492c

Please sign in to comment.