From 76fddc126d0a05ae77b301713eeb407e77d63bda Mon Sep 17 00:00:00 2001 From: Nicola Murino Date: Tue, 14 May 2024 20:36:57 +0200 Subject: [PATCH] switch to Go 1.21 for CI and docker images Signed-off-by: Nicola Murino --- .github/workflows/development.yml | 10 +++++----- .github/workflows/release.yml | 2 +- Dockerfile | 2 +- Dockerfile.alpine | 2 +- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index fed441b5..55fa17f4 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -11,11 +11,11 @@ jobs: runs-on: ${{ matrix.os }} strategy: matrix: - go: ['1.20'] + go: ['1.21'] os: [ubuntu-latest, macos-latest] upload-coverage: [true] include: - - go: '1.20' + - go: '1.21' os: windows-latest upload-coverage: false @@ -232,7 +232,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - name: Build run: | @@ -296,7 +296,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - name: Build run: | @@ -517,7 +517,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '1.20' + go-version: '1.21' - uses: actions/checkout@v3 - name: Run golangci-lint uses: golangci/golangci-lint-action@v3 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9d0a09cf..beb2ea08 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,7 +5,7 @@ on: tags: 'v*' env: - GO_VERSION: 1.20.12 + GO_VERSION: 1.21.10 jobs: prepare-sources-with-deps: diff --git a/Dockerfile b/Dockerfile index 48a99ad3..2e135c49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.20-bullseye as builder +FROM golang:1.21-bullseye as builder ENV GOFLAGS="-mod=readonly" diff --git a/Dockerfile.alpine b/Dockerfile.alpine index e2482e6e..81e17f83 100644 --- a/Dockerfile.alpine +++ b/Dockerfile.alpine @@ -1,4 +1,4 @@ -FROM golang:1.20-alpine3.18 AS builder +FROM golang:1.21-alpine3.18 AS builder ENV GOFLAGS="-mod=readonly"