switch to Go 1.21 for CI and docker images

Signed-off-by: Nicola Murino <nicola.murino@gmail.com>
This commit is contained in:
Nicola Murino 2024-05-14 20:36:57 +02:00
parent b3ce596385
commit 76fddc126d
No known key found for this signature in database
GPG key ID: 935D2952DEC4EECF
4 changed files with 8 additions and 8 deletions

View file

@ -11,11 +11,11 @@ jobs:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
matrix: matrix:
go: ['1.20'] go: ['1.21']
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
upload-coverage: [true] upload-coverage: [true]
include: include:
- go: '1.20' - go: '1.21'
os: windows-latest os: windows-latest
upload-coverage: false upload-coverage: false
@ -232,7 +232,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.20' go-version: '1.21'
- name: Build - name: Build
run: | run: |
@ -296,7 +296,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.20' go-version: '1.21'
- name: Build - name: Build
run: | run: |
@ -517,7 +517,7 @@ jobs:
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
go-version: '1.20' go-version: '1.21'
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- name: Run golangci-lint - name: Run golangci-lint
uses: golangci/golangci-lint-action@v3 uses: golangci/golangci-lint-action@v3

View file

@ -5,7 +5,7 @@ on:
tags: 'v*' tags: 'v*'
env: env:
GO_VERSION: 1.20.12 GO_VERSION: 1.21.10
jobs: jobs:
prepare-sources-with-deps: prepare-sources-with-deps:

View file

@ -1,4 +1,4 @@
FROM golang:1.20-bullseye as builder FROM golang:1.21-bullseye as builder
ENV GOFLAGS="-mod=readonly" ENV GOFLAGS="-mod=readonly"

View file

@ -1,4 +1,4 @@
FROM golang:1.20-alpine3.18 AS builder FROM golang:1.21-alpine3.18 AS builder
ENV GOFLAGS="-mod=readonly" ENV GOFLAGS="-mod=readonly"