From 36436f3aa739af631b84e19366bb13090d952361 Mon Sep 17 00:00:00 2001 From: Dan Sosedoff Date: Fri, 22 Mar 2024 20:36:41 -0700 Subject: [PATCH] Switch to go 1.21 (#702) * Switch to go 1.21 * Update golangci-lint version --- .github/workflows/checks.yml | 4 ++-- .github/workflows/docker.yml | 2 +- .github/workflows/release.yml | 2 +- Dockerfile | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 9419bca..e2d4de5 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -15,7 +15,7 @@ on: env: - GO_VERSION: "1.20" + GO_VERSION: "1.21" concurrency: group: ${{ github.workflow }}-${{ github.ref }} @@ -97,7 +97,7 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.51.2 + version: v1.57.1 fmt: name: fmt diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index abcd259..498c2fd 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -6,7 +6,7 @@ on: - master env: - GO_VERSION: "1.20" + GO_VERSION: "1.21" CGO_ENABLED: 0 IMAGE_REPOSITORY: sosedoff/pgweb diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1dd0929..a66282a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -6,7 +6,7 @@ on: - "v*" env: - GO_VERSION: "1.20" + GO_VERSION: "1.21" CGO_ENABLED: 0 DOCKER_REPOSITORY: sosedoff/pgweb GHCR_REPOSITORY: sosedoff/pgweb diff --git a/Dockerfile b/Dockerfile index e7a9c93..d4dd06b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ # ------------------------------------------------------------------------------ # Builder Stage # ------------------------------------------------------------------------------ -FROM golang:1.20-bullseye AS build +FROM golang:1.21-bullseye AS build WORKDIR /build