Skip to content

Commit 22e5fee

Browse files
committed
bump go version and gh actions
Signed-off-by: Jeeva Kandasamy <jkandasa@gmail.com>
1 parent fa8910f commit 22e5fee

File tree

4 files changed

+14
-14
lines changed

4 files changed

+14
-14
lines changed

.github/workflows/lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
- uses: actions/checkout@v2
1414
- uses: actions/setup-go@v2
1515
with:
16-
go-version: ^1.21
16+
go-version: ^1.24
1717

1818
- name: golangci-lint
19-
uses: golangci/golangci-lint-action@v2
19+
uses: golangci/golangci-lint-action@v8
2020
with:
2121
version: latest
2222
skip-go-installation: true

.github/workflows/publish_container_images.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,25 +11,25 @@ jobs:
1111

1212
steps:
1313
- name: Login in to quay.io registry
14-
uses: docker/login-action@v1
14+
uses: docker/login-action@v3
1515
with:
1616
registry: quay.io
1717
username: ${{ secrets.QUAY_USERNAME }}
1818
password: ${{ secrets.QUAY_TOKEN }}
1919

2020
- name: Login in to docker registry
21-
uses: docker/login-action@v1
21+
uses: docker/login-action@v3
2222
with:
2323
username: ${{ secrets.DOCKER_USERNAME }}
2424
password: ${{ secrets.DOCKER_TOKEN }}
2525

2626
- name: checkout the source code
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v4
2828

29-
- uses: docker/setup-buildx-action@v1
29+
- uses: docker/setup-buildx-action@v3
3030

3131
- name: Cache go modules
32-
uses: actions/cache@v2
32+
uses: actions/cache@v4
3333
with:
3434
path: ~/go/pkg/mod
3535
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}

.github/workflows/publish_executables.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010

1111
steps:
1212
- name: checkout the source code
13-
uses: actions/checkout@v2
13+
uses: actions/checkout@v4
1414

15-
- uses: actions/setup-go@v2
15+
- uses: actions/setup-go@v4
1616
with:
17-
go-version: ^1.21
17+
go-version: ^1.24
1818

1919
- name: Cache go modules
20-
uses: actions/cache@v2
20+
uses: actions/cache@v4
2121
with:
2222
path: ~/go/pkg/mod
2323
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
@@ -37,7 +37,7 @@ jobs:
3737
3838
- name: update release notes and executables
3939
if: startsWith(github.ref, 'refs/tags/') # executes only for new release
40-
uses: softprops/action-gh-release@v1
40+
uses: softprops/action-gh-release@v2
4141
env:
4242
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
4343
with:

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.21-alpine3.19 AS builder
1+
FROM --platform=${BUILDPLATFORM:-linux/amd64} golang:1.24-alpine3.22 AS builder
22
RUN mkdir /app
33
ADD . /app
44
WORKDIR /app
@@ -14,7 +14,7 @@ ARG TARGETARCH
1414
RUN source ./scripts/version.sh && \
1515
GOOS=${TARGETOS:-linux} GOARCH=${TARGETARCH:-amd64} go build -v -o 2mqtt -ldflags "-s -w $LD_FLAGS" cmd/main.go
1616

17-
FROM alpine:3.19
17+
FROM alpine:3.22
1818

1919
LABEL maintainer="Jeeva Kandasamy <jkandasa@gmail.com>"
2020

0 commit comments

Comments
 (0)