chore: Bump alpine and Go versions

3.20 had a minor security vulnerability. Let's bump it.

Related:
* https://github.com/distribution/distribution-library-image/issues/171
* https://github.com/distribution/distribution/pull/4527

Bump Go version
* CI
* go.mod

Signed-off-by: Milos Gajdos <milosthegajdos@gmail.com>
This commit is contained in:
Milos Gajdos
2024-12-12 08:42:19 +00:00
parent b2ae9e398c
commit fb3ba302d2
8 changed files with 13 additions and 13 deletions

View File

@@ -34,7 +34,7 @@ jobs:
matrix:
go:
- 1.22.8
- 1.23.2
- 1.23.4
target:
- test-coverage
- test-cloud-storage

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.23.2
ARG ALPINE_VERSION=3.20
ARG GO_VERSION=1.23.4
ARG ALPINE_VERSION=3.21
ARG XX_VERSION=1.6.1
FROM --platform=$BUILDPLATFORM tonistiigi/xx:${XX_VERSION} AS xx

View File

@@ -1,6 +1,6 @@
# syntax=docker/dockerfile:1
ARG ALPINE_VERSION=3.20
ARG ALPINE_VERSION=3.21
FROM alpine:${ALPINE_VERSION} AS gen
RUN apk add --no-cache git

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.23.2
ARG ALPINE_VERSION=3.20
ARG GO_VERSION=1.23.4
ARG ALPINE_VERSION=3.21
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base
RUN apk add --no-cache git

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.23.2
ARG ALPINE_VERSION=3.20
ARG GO_VERSION=1.23.4
ARG ALPINE_VERSION=3.21
FROM alpine:${ALPINE_VERSION} AS base
RUN apk add --no-cache git gpg

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.23.2
ARG ALPINE_VERSION=3.20
ARG GO_VERSION=1.23.4
ARG ALPINE_VERSION=3.21
ARG GOLANGCI_LINT_VERSION=v1.61.0
ARG BUILDTAGS=""

View File

@@ -1,7 +1,7 @@
# syntax=docker/dockerfile:1
ARG GO_VERSION=1.23.2
ARG ALPINE_VERSION=3.20
ARG GO_VERSION=1.23.4
ARG ALPINE_VERSION=3.21
ARG MODOUTDATED_VERSION=v0.8.0
FROM golang:${GO_VERSION}-alpine${ALPINE_VERSION} AS base

2
go.mod
View File

@@ -2,7 +2,7 @@ module github.com/distribution/distribution/v3
go 1.22.7
toolchain go1.23.2
toolchain go1.23.4
require (
cloud.google.com/go/storage v1.45.0