Skip to content

Commit

Permalink
Migrate to Go 1.22
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 Apr 11, 2024
1 parent 3459c79 commit f8529d2
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion template/golang-http/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.15 as watchdog
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21-alpine as build
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine as build

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
2 changes: 1 addition & 1 deletion template/golang-middleware/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
FROM --platform=${TARGETPLATFORM:-linux/amd64} ghcr.io/openfaas/of-watchdog:0.9.15 as watchdog
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21-alpine as build
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.22-alpine as build

ARG TARGETPLATFORM
ARG BUILDPLATFORM
Expand Down
2 changes: 1 addition & 1 deletion template/golang-middleware/template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: golang-middleware
fprocess: ./handler
welcome_message: |
You have created a new function which uses Go 1.21 and Alpine
You have created a new function which uses Go 1.22 and Alpine
Linux as its base image.
To disable the go module, for private vendor code, please use
Expand Down

0 comments on commit f8529d2

Please sign in to comment.