From c84bb887a49031c19b92d17697e2deffcdab60b0 Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Mon, 15 Jul 2024 11:07:48 +0200 Subject: [PATCH] update to go1.21 Signed-off-by: Sebastiaan van Stijn --- .github/workflows/cd.yml | 2 +- .github/workflows/ci.yml | 10 +++++----- .golangci.yml | 2 +- Dockerfile | 4 ++-- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/cd.yml b/.github/workflows/cd.yml index 8b48fe81c..66e716088 100644 --- a/.github/workflows/cd.yml +++ b/.github/workflows/cd.yml @@ -16,7 +16,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.20.x + go-version: 1.21.x - name: Run goreleaser uses: goreleaser/goreleaser-action@v1 with: diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e85f70aa9..b9461e750 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,7 @@ name: Continuous Integration env: - GO_VERSION: 1.20 + GO_VERSION: 1.21 on: push: @@ -27,7 +27,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.20.x + go-version: 1.21.x - name: Cache build uses: actions/cache@v1 with: @@ -49,7 +49,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.20.x + go-version: 1.21.x - name: Cache build uses: actions/cache@v1 with: @@ -77,7 +77,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.20.x + go-version: 1.21.x - name: Cache build uses: actions/cache@v1 with: @@ -104,7 +104,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v1 with: - go-version: 1.20.x + go-version: 1.21.x - name: Cache build uses: actions/cache@v1 with: diff --git a/.golangci.yml b/.golangci.yml index d9c67792e..f1fcc4c17 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -26,5 +26,5 @@ linters-settings: max-func-lines: 0 run: - go: '1.20' + go: '1.21' timeout: 10m diff --git a/Dockerfile b/Dockerfile index b6385796f..160882b35 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG BASE_IMAGE_BUILDER=golang -ARG ALPINE_VERSION=3.19 -ARG GO_VERSION=1.20 +ARG ALPINE_VERSION=3.20 +ARG GO_VERSION=1.21 FROM ${BASE_IMAGE_BUILDER}:${GO_VERSION}-alpine${ALPINE_VERSION} AS builder ARG GOARCH=amd64