From e4fc30c067b69450113971bd04bbf1b00c06f04c Mon Sep 17 00:00:00 2001 From: ringsaturn Date: Mon, 12 Feb 2024 14:34:42 +0800 Subject: [PATCH] bump Go version --- .github/workflows/ci.yml | 4 ++-- .github/workflows/release.yml | 2 +- Dockerfile | 2 +- go.mod | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d1f05ed..6da3f33 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,7 +11,7 @@ jobs: name: golangci-lint strategy: matrix: - go: ["1.21"] + go: ["1.22"] permissions: contents: read pull-requests: read @@ -35,7 +35,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ["1.21"] + go: ["1.22"] steps: - uses: actions/checkout@v4 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e4c0178..d905e33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -24,7 +24,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v5 with: - go-version: "1.21" + go-version: "1.22" - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 with: diff --git a/Dockerfile b/Dockerfile index 1b62fab..6c28488 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.21.5 AS builder +FROM golang:1.22 AS builder COPY . /src WORKDIR /src diff --git a/go.mod b/go.mod index 0a550d0..d61e5de 100644 --- a/go.mod +++ b/go.mod @@ -1,6 +1,6 @@ module github.com/ringsaturn/tzf-server -go 1.21 +go 1.22.0 require ( github.com/cloudwego/hertz v0.8.0