From a88941e53efbab63583f7db2638754f7096796c8 Mon Sep 17 00:00:00 2001 From: version_updater Date: Thu, 9 May 2024 01:05:20 +0000 Subject: [PATCH] Upgrade to Go 1.22 :rocket: --- .github/workflows/function-deploy.yml | 2 +- function/Dockerfile | 2 +- function/go.mod | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/function-deploy.yml b/.github/workflows/function-deploy.yml index cb538950..54ad5b31 100644 --- a/.github/workflows/function-deploy.yml +++ b/.github/workflows/function-deploy.yml @@ -88,7 +88,7 @@ jobs: --serve-all-traffic-latest-revision \ --region=asia-northeast1 \ --memory=128Mi \ - --runtime=go121 \ + --runtime=go122 \ --service-account=function@primap.iam.gserviceaccount.com \ --entry-point=${FUNCTION_ENTRY_POINT} \ --timeout=${FUNCTION_TIMEOUT} \ diff --git a/function/Dockerfile b/function/Dockerfile index a51db7b8..a78bd85c 100644 --- a/function/Dockerfile +++ b/function/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21 +FROM golang:1.22 RUN apt-get update \ && apt-get install -y openjdk-17-jre \ diff --git a/function/go.mod b/function/go.mod index 56ac00b4..1d09dbb9 100644 --- a/function/go.mod +++ b/function/go.mod @@ -1,8 +1,8 @@ module github.com/sue445/primap -go 1.21 +go 1.22 -toolchain go1.21.0 +toolchain go1.22.0 require ( cloud.google.com/go/firestore v1.15.0