Skip to content

Commit 9be6bae

Browse files
committed
Bump to go 1.24
1 parent 3468582 commit 9be6bae

File tree

6 files changed

+9
-30
lines changed

6 files changed

+9
-30
lines changed

.github/workflows/docker.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ name: Create and publish a Docker image
33
# Configures this workflow to run every time a change is pushed to the branch called `release`.
44
on:
55
pull_request:
6-
branches: main
6+
branches: ['main']
77
push:
8-
branches: [main]
9-
tags: [v*]
8+
branches: ['main']
9+
tags: ['v*']
1010

1111
# Defines two custom environment variables for the workflow. These are used for the Container registry domain, and a name for the Docker image that this workflow builds.
1212
env:
@@ -60,6 +60,7 @@ jobs:
6060
type=ref,event=pr
6161
type=semver,pattern={{version}}
6262
type=semver,pattern={{major}}.{{minor}}
63+
type=sha
6364
- # httos://github.com/actions/cache
6465
name: Cache Docker layers
6566
uses: actions/cache@v4

.github/workflows/go.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- uses: actions/checkout@v4
1818
- uses: actions/setup-go@v5
1919
with:
20-
go-version: "1.21"
20+
go-version: "1.24"
2121
cache: false
2222

2323
- name: golangci-lint

.github/workflows/release.yml

Lines changed: 0 additions & 22 deletions
This file was deleted.

.tool-versions

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
golang 1.21.0
1+
golang 1.24.1

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Load golang image
2-
FROM golang:1.21-alpine as builder
2+
FROM golang:1.24-alpine as builder
33

44
RUN apk add make
55

@@ -35,7 +35,7 @@ RUN --mount=type=cache,target=/tmp/.go-build-cache \
3535
make build VERSION=$VERSION
3636

3737
# Now create a new image with just the binary
38-
FROM gcr.io/distroless/static-debian11:nonroot
38+
FROM gcr.io/distroless/static-debian12:nonroot
3939

4040
WORKDIR /app
4141

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module git.maronato.dev/maronato/finger
22

3-
go 1.21.0
3+
go 1.24.1
44

55
require (
66
github.com/peterbourgon/ff/v4 v4.0.0-alpha.3

0 commit comments

Comments
 (0)