From ee93fd4aff1292cb50e324278d2b35341a65ae33 Mon Sep 17 00:00:00 2001 From: Jochen Schalanda Date: Tue, 13 Aug 2024 21:37:45 +0200 Subject: [PATCH] build: use Go 1.23 to build the project https://tip.golang.org/doc/go1.23 --- .github/workflows/ci.yaml | 8 ++++---- Dockerfile | 4 ++-- README.md | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 8d08201f9..ad3dc2c51 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -11,10 +11,10 @@ jobs: steps: - uses: actions/setup-go@v5 with: - go-version: "1.22.x" + go-version: "1.23.x" - uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v4 + uses: golangci/golangci-lint-action@v6 with: version: latest @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ["1.22.x"] + go: ["1.22.x", "1.23.x"] steps: - uses: actions/checkout@v4 @@ -68,7 +68,7 @@ jobs: ruby-version: 2.7 - uses: actions/setup-go@v5 with: - go-version: "1.22.x" + go-version: "1.23.x" - uses: docker/setup-qemu-action@v3 - uses: docker/setup-buildx-action@v3 diff --git a/Dockerfile b/Dockerfile index 9f4265339..6246a122a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM golang:1.22-alpine3.19 AS builder +FROM golang:1.23-alpine3.20 AS builder ARG VERSION RUN apk add --no-cache git gcc musl-dev make @@ -15,7 +15,7 @@ COPY . ./ RUN make build-docker -FROM alpine:3.19 +FROM alpine:3.20 RUN apk add --no-cache ca-certificates diff --git a/README.md b/README.md index 975348685..e7b67c31a 100644 --- a/README.md +++ b/README.md @@ -3,7 +3,7 @@ [![Coverage Status](https://img.shields.io/coveralls/github/golang-migrate/migrate/master.svg)](https://coveralls.io/github/golang-migrate/migrate?branch=master) [![packagecloud.io](https://img.shields.io/badge/deb-packagecloud.io-844fec.svg)](https://packagecloud.io/golang-migrate/migrate?filter=debs) [![Docker Pulls](https://img.shields.io/docker/pulls/migrate/migrate.svg)](https://hub.docker.com/r/migrate/migrate/) -![Supported Go Versions](https://img.shields.io/badge/Go-1.21%2C%201.22-lightgrey.svg) +![Supported Go Versions](https://img.shields.io/badge/Go-1.22%2C%201.23-lightgrey.svg) [![GitHub Release](https://img.shields.io/github/release/golang-migrate/migrate.svg)](https://github.com/golang-migrate/migrate/releases) [![Go Report Card](https://goreportcard.com/badge/github.com/golang-migrate/migrate/v4)](https://goreportcard.com/report/github.com/golang-migrate/migrate/v4)